diff options
author | Judd Vinet <judd@archlinux.org> | 2002-03-24 08:50:48 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2002-03-24 08:50:48 +0000 |
commit | 2cb34b31712bf72ae6c30e5029572463152a082f (patch) | |
tree | ad0c609164509c2666e0aaad32e657776a7f06f4 | |
parent | 65405267704892a9bcb42186c95adcf4566cbf8c (diff) |
Fixed a runlevel bug in initscripts
-rwxr-xr-x | rc.shutdown | 2 | ||||
-rwxr-xr-x | rc.single | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/rc.shutdown b/rc.shutdown index ae7f9d0..c0f9655 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -12,7 +12,7 @@ echo -n "[ Shutting Down " echo " ]" -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 @@ -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 |