diff options
author | Bill Nottingham <notting@redhat.com> | 2003-01-14 04:48:12 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-01-14 04:48:12 +0000 |
commit | c913d33c793e1de6b902445b96a7de9451a107b0 (patch) | |
tree | 291c1d7001706bc7f1ef99c876d446e433a1a56e /rc.d/init.d | |
parent | a0266b9b4f1b8e1906fd5ff198562be755574089 (diff) | |
download | initscripts-c913d33c793e1de6b902445b96a7de9451a107b0.tar initscripts-c913d33c793e1de6b902445b96a7de9451a107b0.tar.gz initscripts-c913d33c793e1de6b902445b96a7de9451a107b0.tar.bz2 initscripts-c913d33c793e1de6b902445b96a7de9451a107b0.tar.xz initscripts-c913d33c793e1de6b902445b96a7de9451a107b0.zip |
rework halt script (#76831, <michal@harddata.com>)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/halt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 9c27a847..b9c082b3 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -23,9 +23,10 @@ runcmd() { } halt_get_remaining() { - awk '!/(^#|proc|loopfs|autofs|devfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts - awk '{ if ($3 ~ /^proc$/ && $2 !~ /^\/proc/) print $2; }' /proc/mounts - awk '{ if ($3 ~ /^tmpfs$/ && $2 !~ /^\/dev/) print $2; }' /proc/mounts + awk '$2 ~ /^\/$|^\/proc|^\/dev/{next} + $3 == "tmpfs" || $3 == "proc" {print $2 ; next} + /(^#|loopfs|autofs|devfs|^none|^\/dev\/root)/ {next} + {print $2}' /proc/mounts } # See how we were called. |