-set input-meta on
+set meta-flag on
set convert-meta off
set output-meta on
+set horizontal-scroll-mode on
+"\e\e[C": forward-word
+"\e\e[D": backward-word
+"\e\e[3~": kill-word
+"\e[1~": beginning-of-line
+"\e[7~": beginning-of-line
+"\e[3~": delete-char
+"\e[4~": end-of-line
+"\e[8~": end-of-line
#
# You can put here anything :)
#
-echo " Disconet time: `date` z $PPP_REMOTE " >> /var/log/ppp.log
+echo " Disconnect time: `date` from $PPP_REMOTE " >> /var/log/ppp.log
echo "+---------------------------------------------------------------+" >> /var/log/ppp.log
# You can put here anything :)
#
echo "+---------------------------------------------------------------+" >> /var/log/ppp.log
-echo " Conect time: `date` z $PPP_REMOTE " >> /var/log/ppp.log
+echo " Connect time: `date` with $PPP_REMOTE " >> /var/log/ppp.log
+++ /dev/null
-#!/bin/bash
-#
-#!F:radvd.init
-#
-#!P:/etc/rc.d/init.d
-#
-#!D:Starts and stops the IPv6 router advertisement daemon
-#
-#!C:Copyright 1997-1998 Peter Bieringer <pb@bieringer.de>
-#
-#!V:Version 1.01 03.01.1998
-
-# Changes from 1.00: info display
-
-
-# Display information
-info() {
- grep "^#!D" $0 | awk -F: '{ print $2}'
- grep "^#!C" $0 | awk -F: '{ print " " $2}'
- grep "^#!V" $0 | awk -F: '{ print " " $2}'
- echo
-}
-
-## Start
-
-echo $0 $1 executed...
-
-info
-
-# Source function library.
-[ -f /etc/init.d/functions ] || exit 0
-. /etc/init.d/functions
-
-# Source IPv6 function library.
-[ -f /etc/init.d/functions-ip6 ] || exit 0
-. /etc/init.d/functions-ip6
-
-
-test-ip6 || exit 1
-
-# Check that RADVD is enabled.
-if ! [ "$IP6RADVD" = "yes" ]; then
- echo -e "\a ...isn't enabled - stop!"
- exit 0
-fi
-
-# See how we were called.
-case "$1" in
- start)
- if ! [ -f $IP6RADVDFILE ]; then
- echo " RADVD config file $IP6RADVD doesn't exist - stop!"
- else
- # Start daemons
- echo " Starte radvd: options: $IP6RADVDOPTIONS -C $IP6RADVDFILE"
- if [ $[ $IP6DEBUG & 2 ] = 0 ]; then
- radvd -C $IP6RADVDFILE $IP6RADVDOPTIONS &
- touch /var/lock/subsys/radvd
- fi
- echo
- fi
- ;;
- stop)
- # Stop daemons.
- echo -n " Stoppe radvd: "
- if [ $[ $IP6DEBUG & 2 ] = 0 ]; then
- killproc radvd
- rm -f /var/lock/subsys/radvd
- fi
- echo "done"
- ;;
- *)
- echo "Usage: radvd.init {start|stop}"
- exit 1
-esac
-
-return-ip6
-
-echo $0 $1 ..done
-
-exit 0
Summary(pl): inittab i skrypty startowe z katalogu /etc/rc.d
Summary(tr): inittab ve /etc/rc.d dosyalarý
Name: rc-scripts
-Version: 0.0.1
+Version: 0.0.3
Copyright: GPL
Group: Base
Group(pl): Bazowe
do /sbin/chkconfig --add $i
done
if [ -f /etc/inittab.rpmsave ]; then
+ echo "**** Found old /etc/inittab.rpmsave ****"
+ echo "/etc/inittab renamed to /etc/inittab.rpmnew"
mv /etc/inittab /etc/inittab.rpmnew
+ echo "/etc/inittab.rpmsave renamed to /etc/inittab."
mv /etc/inittab.rpmsave /etc/inittab
fi
/usr/man/man1/*
%changelog
+* Tue Mar 23 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
+ [0.0.2-1]
+- be more verbose while upgrading when /etc/inittab.rpmsave is found,
+- added seting NETWORK="no" variable to when /etc/sysconfig/network is not present
+ or when NETWORK in this file is not defined.
+
* Sun Mar 21 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.0.1]
+ [0.0.1-1]
- added /etc/sysconfig/system,
- removed man group from man pages,
- added in %post not replacing /etc/inittab on upgrade from initscripts,
# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
#
-# Version: @(#) /etc/init.d/functions $Revision: 1.4 $ $Date: 1999/06/14 20:12:05 $
+# Version: @(#) /etc/init.d/functions $Revision: 1.5 $ $Date: 1999/06/14 20:44:32 $
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Hacked by: Greg Galloway and Marc Ewing
}
function busy {
- echo -ne "`tput setaf 6`[`tput setaf 5` BUSY `tput setaf 6`]`tput setaf 7`"
+ echo -n "`tput setaf 6`[`tput setaf 5` BUSY `tput setaf 6`]`tput setaf 7`"
}
function ok {
- echo -ne "`tput setaf 6`[`tput setaf 2` DONE `tput setaf 6`]`tput setaf 7`"
+ echo "`tput setaf 6`[`tput setaf 2` DONE `tput setaf 6`]`tput setaf 7`"
}
function fail {
- echo -ne "`tput setaf 6`[`tput setaf 1` FAIL `tput setaf 6`]`tput setaf 7`"
+ echo "`tput setaf 6`[`tput setaf 1` FAIL `tput setaf 6`]`tput setaf 7`"
}
function died {
- echo -ne "`tput setaf 6`[`tput setaf 1` DIED `tput setaf 6`]`tput setaf 7`"
+ echo "`tput setaf 6`[`tput setaf 1` DIED `tput setaf 6`]`tput setaf 7`"
}
function deltext {
# And start it up.
busy
- if nice -n $nicelevel "$@" &> $TMPFILE; then
+ if nice -n $nicelevel "$@" >$TMPFILE 2>&1; then
deltext
ok
else
if [ "$pid" != "" ] ; then
if [ "$notset" = 1 ] ; then
# TERM first, then KILL if not dead
- kill -TERM $pid &> $TMPFILE
+ kill -TERM $pid >$TMPFILE 2>&1
usleep 100000
dead=`ps -o pid= $pid`
if [ "$dead" != "" ]; then
sleep 3
- kill -KILL $pid &> $TMPFILE
+ kill -KILL $pid >$TMPFILE 2>&1
fi
# use specified level only
else
- kill $killlevel $pid &> $TMPFILE
+ kill $killlevel $pid >$TMPFILE 2>&1
fi
else
rm -f /var/run/$base.pid
fi
# Finally try to extract it from ps
- echo `ps -C $1 -o pid=`
- return 0
+ pids=`ps -C $1 -o pid=`
+
+ # Return the first PID, which is not our
+ for pid in $pids ; do
+ if [ $pid != $$ ] ; then
+ echo $pid
+ return 0
+ fi
+ done
+
+ return 1
}
status() {
else
if [ "$FORWARD_IPV4" = "no" -o "$FORWARD_IPV4" = "false" ]; then
value=0
- message="Disabling IPv4 packet forwarding: "
+ message="Disabling IPv4 packet forwarding"
else
value=1
- message="Enabling IPv4 packet forwarding :"
+ message="Enabling IPv4 packet forwarding"
fi
if [ $value != `cat /proc/sys/net/ipv4/ip_forward` ]; then
else
if [ "$SPOOFING_IPV4" = "no" -o "$SPOOFING_IPV4" = "false" ]; then
value=0
- message="Disabling IPv4 spoofing protection: "
+ message="Disabling IPv4 spoofing protection"
else
value=1
- message="Enabling IPv4 spoofing protection: "
+ message="Enabling IPv4 spoofing protection"
fi
if [ $value != `cat /proc/sys/net/ipv4/conf/all/rp_filter` ]; then
else
if [ "$IGNORE_ICMP_BCAST_IPV4" = "no" -o "$IGNORE_ICMP_BCAST_IPV4" = "false" ]; then
value=0
- message="Disabling IPv4 ign icmp_echo to our bcasts: "
+ message="Disabling IPv4 ign icmp_echo to our bcasts"
else
value=1
- message="Enabling IPv4 ign icmp_echo to our bcasts: "
+ message="Enabling IPv4 ign icmp_echo to our bcasts"
fi
if [ $value != `cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts` ]; then
;;
esac
./ifdown ifcfg-lo
- show "Disabling IPv4 packet forwarding: "
+ show "Disabling IPv4 packet forwarding"
busy
echo 0 > /proc/sys/net/ipv4/ip_forward
deltext; ok
/etc/sysconfig/network:
NETWORKING=yes|no
+ IP6NETWORKING=yes|no
HOSTNAME=<fqdn by default, but whatever hostname you want>
Note: for compatibility with some old software people might
install (like trn), the /etc/HOSTNAME file should contain the
DEVICE=<name of physical device (except dynamically-allocated PPP
devices where it is the "logical name")
IPADDR=
+ IP6ADDRS=<blank separated list of ipv6 addresses>
NETMASK=
GATEWAY=
ONBOOT=yes|no
+++ /dev/null
-'' atz
-ABORT BUSY
-ABORT NO\\sDIAL
-ABORT NO\\sCARRIER
-TIMEOUT 60
-OK atdT$PHONE
-CONNECT \\c
-\)? $CBPASSWORD
-umber $CBPHONE
-HANGUP OFF
-CLR_ABORT NO\\sCARRIER
-NO\\sCARRIER \\c
-TIMEOUT 120
-RING ATA
-ABORT NO\\sCARRIER
-CONNECT \\c
-HANGUP ON
-ogin: $USER
-assword: $PASSWORD
+++ /dev/null
-DEVICE=ppp0
-CHATSCRIPT=chat-ppp0
-ONBOOT=no
-HARDFLOWCTL=yes
-MODEMPORT=/dev/ttyS1
-LINESPEED=115200
-DEBUG=yes
-PERSIST=no
-HOLDOFF=10
-#demand option not finished yet ;-(
-DEMAND=no
-#ACTIVEFILTER=
-#IDLE=
-PHONE=phone
-#CBPASSWORD and CBPHONE is ysed (by me) in callback.
-#see included chat-ppp0 for example of
-#"modem level" callback (on USRobotics Courier)
-CBPASSWORD=cbpassword
-CBPHONE=myphone
-USER=user
-PASSWORD=password
-DATAFORCHAT="CBPASSWORD CBPHONE PHONE USER PASSWORD"
-
-REPORTFILE=/var/log/ppp0.log
-#!/bin/sh -x
+#!/bin/sh
SLEEPPIDFILE=/var/run/dhcp-wait-${IFNAME}.pid
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
exit 1
}
-if [ $UID != 0 ]; then
+if [ `id -u` != 0 ]; then
if [ -x /usr/sbin/usernetctl ]; then
exec /usr/sbin/usernetctl $CONFIG down
fi
# it is brought down explicitly.
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
source_config
-#!/bin/bash
+#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
source_config
-#!/bin/bash
+#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
source_config
-#!/bin/bash
+#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
-. network-functions
+. ../network
+. ./network-functions
need_hostname
exit 1
}
-if [ $UID != 0 ]; then
+if [ `id -u` != 0 ]; then
if [ -x /usr/sbin/usernetctl ]; then
exec /usr/sbin/usernetctl $CONFIG up
fi
ifconfig ${DEVICE} ${MACADDR:+hw ether $MACADDR} ${IPADDR} \
netmask ${NETMASK} broadcast ${BROADCAST}
+
+ if [ "${IP6NETWORKING}" = "yes" ] ; then
+ for ADDR in ${IP6ADDRS} ; do
+ ifconfig ${DEVICE} add ${ADDR}
+ done
+ fi
+
if [ "$ISALIAS" = no ] ; then
route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
else
exit 1
fi
-allow_null_glob_expansion=foo
-for alias in /etc/sysconfig/network-scripts/ifcfg-$1:* ; do
- /etc/sysconfig/network-scripts/ifup $alias
-done
-unset allow_null_glob_expansion
+aliases="`echo /etc/sysconfig/network-scripts/ifcfg-$1:*`"
+if [ "$aliases" = '/etc/sysconfig/network-scripts/ifcfg-$1:*' ]; then
+ allow_null_glob_expansion=foo
+ for alias in /etc/sysconfig/network-scripts/ifcfg-$1:* ; do
+ /etc/sysconfig/network-scripts/ifup $alias
+ done
+ unset allow_null_glob_expansion
+fi
-#!/bin/bash
+#!/bin/sh
# configures IPX on $1 if appropriate
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case $IPX in yes|true) ;; *) exit 0 ;; esac
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
[ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
source_config
#!/bin/sh
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
need_hostname
CONFIG=$1
CONFIG=$1
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
source_config
if [ -z "$HOLDOFF" ]; then
HOLDOFF=30
shift
cd /etc/sysconfig/network-scripts
-. network-functions
+. ./network-functions
CONFIG=$1
source_config
echo "Missing config file $PARENTCONFIG." >&2
exit 1
}
- . $PARENTCONFIG
+ . ./$PARENTCONFIG
fi
- . $CONFIG
+ . ./$CONFIG
}
do_netreport ()
echo "search $domain" >> /etc/resolv.conf
fi
}
+
+++ /dev/null
-#!/bin/bash
-#
-#!F:tunnels-ip6.init
-#
-#!P:/etc/rc.d/init.d
-#
-#!D:Starts and stops the IPv6 over IPv4 tunnels
-#
-#!C:Copyright 1997-1998 Peter Bieringer <pb@bieringer.de>
-#
-#!V:Version 1.01 05.01.1998
-
-# Changes from 1.00: info display
-
-# Display information
-info() {
- grep "^#!D" $0 | awk -F: '{ print $2}'
- grep "^#!C" $0 | awk -F: '{ print " " $2}'
- grep "^#!V" $0 | awk -F: '{ print " " $2}'
- echo
-}
-
-## Start
-
-echo $0 $* executed...
-
-info
-
-# Source function library.
-[ -f /etc/init.d/functions ] || exit 0
-. /etc/init.d/functions
-
-# Source IPv6 function library.
-[ -f /etc/init.d/functions-ip6 ] || exit 0
-. /etc/init.d/functions-ip6
-
-if ! [ "$2" = "" ]; then IP6DEBUG=$2; fi
-
-test-ip6 || exit 1
-
-# Check that tunnels are enabled.
-if ! [ "$IP6TUNNELCONFIG" = "yes" ]; then
- echo -e "\a ...Tunneling isn't enabled - stop!"
- exit 0
-fi
-
-
-# See how we were called.
-case "$1" in
- start)
- # Start tunnels.
- tunnels-up-ip6
- ;;
- stop)
- # Stop tunnels.
- tunnels-down-ip6
- ;;
- *)
- echo "Usage: tunnel-ip6.init {start|stop} <debug-level>"
- exit 1
-esac
-
-return-ip6
-
-echo $0 $* ...done
-
-exit 0