diff options
author | Judd Vinet <judd@archlinux.org> | 2002-04-15 06:41:16 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2002-04-15 06:41:16 +0000 |
commit | 5b61b6c2bf49d75df992a4dc39757e66a536dbcd (patch) | |
tree | 70c94a870d661f34cdbdc66aae3ad846d4b3b997 /rc.shutdown | |
parent | 91fd2beff99c9e623a201c8221964353c8669044 (diff) |
Updated initscripts for multiple ethernet interfaces
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rc.shutdown b/rc.shutdown index c0f9655..4688a6b 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -14,19 +14,19 @@ echo " ]" if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Shutdown daemons + let i=${#DAEMONS[@]} + while [[ i -gt 0 ]]; do + if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then + /etc/rc.d/${DAEMONS[$i]} stop + fi + let i=i-1 + done + # find any leftover daemons and shut them down if [ -d /var/run/daemons ]; then for daemon in `ls /var/run/daemons`; do /etc/rc.d/$daemon stop done fi - - # Shutdown network - /etc/rc.d/network stop - - # Shutdown pcmcia - if [ "$PCMCIA" = "yes" -a -f /etc/rc.d/pcmcia ]; then - /etc/rc.d/pcmcia stop - fi fi # Terminate all processes |