diff options
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 19e21a28..14eadb7c 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -26,7 +26,7 @@ runcmd() { } halt_get_remaining() { - awk '!/(^#|proc|loopfs|autofs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts + awk '!/(^#|proc|loopfs|autofs|dev|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts awk '{ if ($3 ~ /^proc$/ && $2 !~ /^\/proc/) print $2; }' /proc/mounts } @@ -141,7 +141,7 @@ devremaining=`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/m fi for dev in $devremaining ; do losetup $dev > /dev/null 2>&1 && \ - runcmd $"Detaching loopback device $dev: " losetup -d $device + runcmd $"Detaching loopback device $dev: " losetup -d $dev done remaining=`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts` devremaining=`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts` |