diff options
Diffstat (limited to 'rc.d/init.d/halt')
-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. |