summaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2002-03-11 00:58:34 +0000
committerJudd Vinet <judd@archlinux.org>2002-03-11 00:58:34 +0000
commit14e3f9480a7364200b999477fa4ab9da16884831 (patch)
tree76c3165f0b8c3a65be1919aa7f9fc5dfe79d5379 /rc.single
parent325b46a6b02aee695658eafe6b714d0e02810e1a (diff)
Removed rc.proto, updated rc.single
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single16
1 files changed, 14 insertions, 2 deletions
diff --git a/rc.single b/rc.single
index fab12ff..804cda6 100755
--- a/rc.single
+++ b/rc.single
@@ -8,12 +8,24 @@
if [ "$PREVLEVEL" = "2" ]; then
# Shutdown daemons
- stat_busy "Shutting Down Daemons"
- stat_done
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
# Shutdown network
stat_busy "Shutting Down Network"
+ /sbin/ifconfig lo down
+ if [ "$IPADDR" != "" -a "$NETMASK" != "" ]; then
+ /sbin/ifconfig eth0 down
+ fi
stat_done
+
+ # Shutdown pcmcia
+ if [ "$PCMCIA" = "yes" -a -f /etc/rc.d/pcmcia ]; then
+ /etc/rc.d/pcmcia stop
+ fi
fi
if [ "$PREVLEVEL" != "N" ]; then