diff options
author | Bill Nottingham <notting@redhat.com> | 2002-02-07 03:03:37 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-02-07 03:03:37 +0000 |
commit | 5267ace6f3638e1a33b6e473443d2396cdfdae65 (patch) | |
tree | df9b8c3889b0287d898d6645da5c027daf2b6f4c | |
parent | c8b0b92557569e44f31360d646f863d512b7f40d (diff) | |
download | initscripts-5267ace6f3638e1a33b6e473443d2396cdfdae65.tar initscripts-5267ace6f3638e1a33b6e473443d2396cdfdae65.tar.gz initscripts-5267ace6f3638e1a33b6e473443d2396cdfdae65.tar.bz2 initscripts-5267ace6f3638e1a33b6e473443d2396cdfdae65.tar.xz initscripts-5267ace6f3638e1a33b6e473443d2396cdfdae65.zip |
fix typo (#55955)
don't blow up badly on devfs (#53580)
-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` |