diff options
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index c0671ef9..f54d69d1 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -43,9 +43,9 @@ esac # Kill all processes. [ "${BASH+bash}" = bash ] && enable kill -runcmd "Sending all processes the TERM signal..." /sbin/killall5 -15 +action $"Sending all processes the TERM signal..." /sbin/killall5 -15 sleep 5 -runcmd "Sending all processes the KILL signal..." /sbin/killall5 -9 +action $"Sending all processes the KILL signal..." /sbin/killall5 -9 # Write to wtmp file before unmounting /var halt -w @@ -53,19 +53,19 @@ halt -w # Save mixer settings, here for lack of a better place. grep -q "\(sparcaudio\|sound\)" /proc/devices if [ $? = 0 -a -x /bin/aumix-minimal ]; then - runcmd "Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S + action $"Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S fi # Sync clock -runcmd "Syncing hardware clock to system time" /sbin/hwclock --systohc +action $"Syncing hardware clock to system time" /sbin/hwclock --systohc # Turn off swap, then unmount file systems. SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps` -[ -n "$SWAPS" ] && runcmd "Turning off swap: " swapoff $SWAPS +[ -n "$SWAPS" ] && action $"Turning off swap: " swapoff $SWAPS -[ -x /sbin/accton ] && runcmd "Turning off accounting: " /sbin/accton +[ -x /sbin/accton ] && action $"Turning off accounting: " /sbin/accton -[ -x /sbin/quotaoff ] && runcmd "Turning off quotas: " /sbin/quotaoff -a +[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -a # Unmount file systems, killing processes if we have to. sig= @@ -74,9 +74,9 @@ remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mo while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then - runcmd "Unmounting file systems (retry): " umount -a -f -t noproc + action $"Unmounting file systems (retry): " umount -a -f -t noproc else - runcmd "Unmounting file systems: " umount -a -f -t noproc + action $"Unmounting file systems: " umount -a -f -t noproc fi sleep 2 remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` @@ -95,7 +95,7 @@ mount | awk '/ext2/ { print $3 }' | while read line; do mount -n -o ro,remount $line done -runcmd "Unmounting proc file system: " umount /proc +action $"Unmounting proc file system: " umount /proc # Now halt or reboot. echo $"$message" |