aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-01-25 04:24:31 +0000
committerBill Nottingham <notting@redhat.com>2002-01-25 04:24:31 +0000
commit2db1f5d2b8813693629672c219c45891d3c9a328 (patch)
tree5abf9d06b95e0d5db8be19e2e4a2197ee4e97286 /rc.d
parentc38d609f6700318b3399a77fae078d134283b68b (diff)
downloadinitscripts-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')
-rwxr-xr-xrc.d/init.d/halt2
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
}