# Modified for PLD Linux by Grzegorz Stanislawski
# Changes: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
#
-# $Id: rc.shutdown,v 1.4 2000/02/18 10:42:02 wiget Exp $
+# $Id: rc.shutdown,v 1.5 2000/02/18 12:37:36 waszi Exp $
# Set the path.
PATH=/sbin:/bin:/usr/bin:/usr/sbin
do
_ERRORS=""
show "Unmounting file systems"; busy
- if _ERRORS="`LANG_OLD=$LC_ALL;LC_ALL=C;initlog -c \"umount -a -f -t noproc\" 2>&1;LC_ALL=$LANG_OLD`"; the
- n
+ if _ERRORS="`LC_ALL=C;LANG=C;initlog -c \"umount -a -f -t noproc\" 2>&1`"; then
deltext; ok
else
deltext; fail; echo $_ERRORS
unset _ERRORS
sleep 2
- remaining=`awk '!/(^#|proc|^none|^\/dev\/root)/ {print $2}' /proc/mounts`
+ remaining=`awk '!/(^#| (proc|devfs|devpts|\/) |^none|^\/dev\/root)/ {print $2}' /proc/mounts`
[ -z "$remaining" ] && break
[ -x /sbin/fuser ] && /sbin/fuser -k -m $sig $remaining >/dev/null
sleep 5