From 5267ace6f3638e1a33b6e473443d2396cdfdae65 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 7 Feb 2002 03:03:37 +0000 Subject: fix typo (#55955) don't blow up badly on devfs (#53580) --- rc.d/init.d/halt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d') 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` -- cgit v1.2.1