aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-01-12 16:09:59 +0000
committerBill Nottingham <notting@redhat.com>2006-01-12 16:09:59 +0000
commitfdce640fc5588dcc0a7995521a89ba1b7e0c92a1 (patch)
tree8eddd8ad7aca6ae251291e5ea031cf22b5ffee45
parent78831de74542d9c22536b776d513dd462b8a184b (diff)
downloadinitscripts-fdce640fc5588dcc0a7995521a89ba1b7e0c92a1.tar
initscripts-fdce640fc5588dcc0a7995521a89ba1b7e0c92a1.tar.gz
initscripts-fdce640fc5588dcc0a7995521a89ba1b7e0c92a1.tar.bz2
initscripts-fdce640fc5588dcc0a7995521a89ba1b7e0c92a1.tar.xz
initscripts-fdce640fc5588dcc0a7995521a89ba1b7e0c92a1.zip
ignore sysfs but not /sys<otherstuff> (#177612, <bnocera@redhat.com>)
-rwxr-xr-xrc.d/init.d/halt4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 8f2a30ca..2a856913 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -23,9 +23,9 @@ runcmd() {
}
halt_get_remaining() {
- awk '$2 ~ /^\/$|^\/proc|^\/sys|^\/dev/{next}
+ awk '$2 ~ /^\/$|^\/proc|^\/dev/{next}
$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
- /(^#|loopfs|autofs|devfs|^none|^\/dev\/ram|^\/dev\/root)/ {next}
+ /(^#|loopfs|autofs|sysfs|devfs|^none|^\/dev\/ram|^\/dev\/root)/ {next}
{print $2}' /proc/mounts
}