diff options
author | Bill Nottingham <notting@redhat.com> | 2002-01-25 04:24:31 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-01-25 04:24:31 +0000 |
commit | 2db1f5d2b8813693629672c219c45891d3c9a328 (patch) | |
tree | 5abf9d06b95e0d5db8be19e2e4a2197ee4e97286 /rc.d/init.d/halt | |
parent | c38d609f6700318b3399a77fae078d134283b68b (diff) | |
download | initscripts-2db1f5d2b8813693629672c219c45891d3c9a328.tar initscripts-2db1f5d2b8813693629672c219c45891d3c9a328.tar.gz initscripts-2db1f5d2b8813693629672c219c45891d3c9a328.tar.bz2 initscripts-2db1f5d2b8813693629672c219c45891d3c9a328.tar.xz initscripts-2db1f5d2b8813693629672c219c45891d3c9a328.zip |
don't blow up badly on devfs (#53580)
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 19e21a28..05f179dc 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 } |