diff options
author | Bill Nottingham <notting@redhat.com> | 2006-01-12 16:09:59 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-01-12 16:09:59 +0000 |
commit | fdce640fc5588dcc0a7995521a89ba1b7e0c92a1 (patch) | |
tree | 8eddd8ad7aca6ae251291e5ea031cf22b5ffee45 /rc.d/init.d | |
parent | 78831de74542d9c22536b776d513dd462b8a184b (diff) | |
download | initscripts-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>)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/halt | 4 |
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 } |