-- nie wszyscy maj± zainstalowan± quote
-
-- o ile to mo¿liwe usun±æ u¿ywanie awk i sed zastêpowaæ u¿yewaniem sh lub
- przynajmeniej zastêpowaæ awka sedem
+- BIND_DEV przy obs³udze tuneli trudno jest obs³u¿yæ z tego
+ wzglêdu, ¿e interfejsy s± podnoszone _po_ starcie tuneli.
+ Trzeba bêdzie przenie¶æ konfiguracjê interfejsów tuneli
+ z np. ifcfg-icm do tnlcfg-icm. Nie ma innego wyj¶cia :-(
-# $Id: rc-scripts.spec.in,v 1.24 1999/08/14 11:56:41 misiek Exp $
+# $Id: rc-scripts.spec.in,v 1.25 1999/08/16 09:38:39 misiek Exp $
Summary: inittab and /etc/rc.d scripts
Summary(de): inittab und /etc/rc.d Scripts
Summary(fr): inittab et scripts /etc/rc.d
doc/*.txt
%post
-for i in halt random reboot single network nfsfs allowlogin
+for i in halt random reboot single network nfsfs allowlogin killall
do /sbin/chkconfig --add $i
done
if [ -f /etc/inittab.rpmsave ]; then
echo "/etc/inittab.rpmsave renamed to /etc/inittab."
mv /etc/inittab.rpmsave /etc/inittab
fi
-for l in /etc/sysconfig/network-scripts/ifcfg-* ; do
- if [ -f "$l" ] ; then
- NEWNAME=`basename $l`
- [ -f /etc/sysconfig/interfaces/$NEWNAME ] || cp $l /etc/sysconfig/interfaces/$NEWNAME
- fi
-done
%preun
if [ "$1" = "0" ]; then
#!/bin/sh
#
-# $Id: killall,v 1.4 1999/07/31 11:24:19 misiek Exp $
+# killall Script for system downing
+#
+# chkconfig: 12345 00 90
+# description: kill em all
+#
+# $Id: killall,v 1.5 1999/08/16 09:38:39 misiek Exp $
# Bring down all unneeded services that are still running (there shouldn't
# be any, so this is just a sanity check)
-for i in /var/lock/subsys/*; do
- # Check if the script is there.
- [ ! -f $i ] && continue
-
- # Get the subsystem name.
- subsys=${i#/var/lock/subsys/}
-
- # Bring the subsystem down.
- if [ -f /etc/rc.d/init.d/$subsys.init ]; then
- /etc/rc.d/init.d/$subsys.init stop
- else
- /etc/rc.d/init.d/$subsys stop
- fi
-done
-
+case "$1" in
+ start*)
+ exit 0
+ ;;
+ stop*)
+ for i in /var/lock/subsys/*; do
+ # Check if the script is there.
+ [ ! -f $i ] && continue
+
+ # Get the subsystem name.
+ subsys=${i#/var/lock/subsys/}
+
+ # Bring the subsystem down.
+ if [ -f /etc/rc.d/init.d/$subsys.init ]; then
+ /etc/rc.d/init.d/$subsys.init stop
+ else
+ /etc/rc.d/init.d/$subsys stop
+ fi
+ done
+ ;;
+esac