diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-29 23:39:19 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-29 23:39:19 +0000 |
commit | 27d66b229b5d34726c50f4ef4b649a6c44331a78 (patch) | |
tree | 29db30d6d8d9b03a6ba38391a41625edc6333a3f /rc.d/init.d/halt | |
parent | 651f425813c49048eac3895481a70eea1e2c9274 (diff) | |
download | initscripts-27d66b229b5d34726c50f4ef4b649a6c44331a78.tar initscripts-27d66b229b5d34726c50f4ef4b649a6c44331a78.tar.gz initscripts-27d66b229b5d34726c50f4ef4b649a6c44331a78.tar.bz2 initscripts-27d66b229b5d34726c50f4ef4b649a6c44331a78.tar.xz initscripts-27d66b229b5d34726c50f4ef4b649a6c44331a78.zip |
add autofs (#17288)
Diffstat (limited to 'rc.d/init.d/halt')
-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 099e58dd..4f9eedb1 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -122,7 +122,7 @@ SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps` # Unmount file systems, killing processes if we have to. sig= retry=3 -remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` +remaining=`awk '!/(^#|proc|loopfs|autofs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then @@ -131,7 +131,7 @@ do LANG=C runcmd $"Unmounting file systems: " umount -a -f -t noproc fi sleep 2 - remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` + remaining=`awk '!/(^#|proc|loopfs|autofs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` [ -z "$remaining" ] && break /sbin/fuser -k -m $sig $remaining >/dev/null sleep 5 |