aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-01-12 16:09:36 +0000
committerBill Nottingham <notting@redhat.com>2006-01-12 16:09:36 +0000
commit7018c54944cea9e8f9efc7a7fae42d406ad012b1 (patch)
treecc0e708603dc7c019951339349452c38868957d9 /rc.d/init.d
parent4d45b3deccfc4a2d9cc24492b68398375a819146 (diff)
downloadinitscripts-7018c54944cea9e8f9efc7a7fae42d406ad012b1.tar
initscripts-7018c54944cea9e8f9efc7a7fae42d406ad012b1.tar.gz
initscripts-7018c54944cea9e8f9efc7a7fae42d406ad012b1.tar.bz2
initscripts-7018c54944cea9e8f9efc7a7fae42d406ad012b1.tar.xz
initscripts-7018c54944cea9e8f9efc7a7fae42d406ad012b1.zip
ignore sysfs but not /sys<otherstuff> (#177612, <bnocera@redhat.com>)
Diffstat (limited to 'rc.d/init.d')
-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 a979f644..41f8ae77 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|^none|^\/dev\/ram|^\/dev\/root)/ {next}
+ /(^#|loopfs|autofs|sysfs|^none|^\/dev\/ram|^\/dev\/root)/ {next}
{print $2}' /proc/mounts
}