--- /etc/rc.d/init.d/halt.DIST Fri Dec 10 18:29:58 1999 +++ /etc/rc.d/init.d/halt Mon Mar 5 18:49:39 2001 @@ -65,7 +65,7 @@ # Unmount file systems, killing processes if we have to. sig= retry=3 -remaining=`awk '!/(^#|proc|^none|^\/dev\/root)/ {print $2}' /proc/mounts` +remaining=`awk '!/(^#|proc|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then @@ -74,7 +74,7 @@ runcmd "Unmounting file systems" umount -a -f -t noproc fi sleep 2 - remaining=`awk '!/(^#|proc|^none|^\/dev\/root)/ {print $2}' /proc/mounts` + remaining=`awk '!/(^#|proc|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` [ -z "$remaining" ] && break /sbin/fuser -k -m $sig $remaining >/dev/null sleep 5 @@ -116,4 +116,8 @@ elif [ -f /forcefsck ]; then echo "On the next boot fsck will be forced." fi +for UPS in omnismart-pnp powerd tripp-class tripp-nt apc1-nt apc2-nt apc-linux +do + test -c /dev/$UPS && /sbin/genpowerd -k /dev/$UPS $UPS +done eval $command -i -d -p