From 7018c54944cea9e8f9efc7a7fae42d406ad012b1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 12 Jan 2006 16:09:36 +0000 Subject: ignore sysfs but not /sys (#177612, ) --- rc.d/init.d/halt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d/halt') 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 } -- cgit v1.2.1