From 2cb34b31712bf72ae6c30e5029572463152a082f Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sun, 24 Mar 2002 08:50:48 +0000 Subject: Fixed a runlevel bug in initscripts --- rc.single | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'rc.single') diff --git a/rc.single b/rc.single index 804cda6..71024d9 100755 --- a/rc.single +++ b/rc.single @@ -6,7 +6,7 @@ . /etc/rc.conf . /etc/rc.d/functions -if [ "$PREVLEVEL" = "2" ]; then +if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Shutdown daemons if [ -d /var/run/daemons ]; then for daemon in `ls /var/run/daemons`; do @@ -15,12 +15,7 @@ if [ "$PREVLEVEL" = "2" ]; then fi # Shutdown network - stat_busy "Shutting Down Network" - /sbin/ifconfig lo down - if [ "$IPADDR" != "" -a "$NETMASK" != "" ]; then - /sbin/ifconfig eth0 down - fi - stat_done + /etc/rc.d/network stop # Shutdown pcmcia if [ "$PCMCIA" = "yes" -a -f /etc/rc.d/pcmcia ]; then -- cgit v1.2.3