aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-23 20:58:24 +0000
committerBill Nottingham <notting@redhat.com>2001-01-23 20:58:24 +0000
commit2f549b3f161d2fd0ed74eac79baef61be44174ea (patch)
tree3e6c4e0c2ca524ee48ec7b82da57eb12c0fe537c /rc.d/init.d/halt
parentcd3fbcd2543ef8bbf9cc983dd6899e914a98c947 (diff)
downloadinitscripts-2f549b3f161d2fd0ed74eac79baef61be44174ea.tar
initscripts-2f549b3f161d2fd0ed74eac79baef61be44174ea.tar.gz
initscripts-2f549b3f161d2fd0ed74eac79baef61be44174ea.tar.bz2
initscripts-2f549b3f161d2fd0ed74eac79baef61be44174ea.tar.xz
initscripts-2f549b3f161d2fd0ed74eac79baef61be44174ea.zip
fix utter brokenness. Must be more careful with sed
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-xrc.d/init.d/halt20
1 files changed, 10 insertions, 10 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index f54d69d1..96cf2a46 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
-action $"Sending all processes the TERM signal..." /sbin/killall5 -15
+runcmd $"Sending all processes the TERM signal..." /sbin/killall5 -15
sleep 5
-action $"Sending all processes the KILL signal..." /sbin/killall5 -9
+runcmd $"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
- action $"Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S
+ runcmd $"Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S
fi
# Sync clock
-action $"Syncing hardware clock to system time" /sbin/hwclock --systohc
+runcmd $"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" ] && action $"Turning off swap: " swapoff $SWAPS
+[ -n "$SWAPS" ] && runcmd $"Turning off swap: " swapoff $SWAPS
-[ -x /sbin/accton ] && action $"Turning off accounting: " /sbin/accton
+[ -x /sbin/accton ] && runcmd $"Turning off accounting: " /sbin/accton
-[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -a
+[ -x /sbin/quotaoff ] && runcmd $"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
- action $"Unmounting file systems (retry): " umount -a -f -t noproc
+ runcmd $"Unmounting file systems (retry): " umount -a -f -t noproc
else
- action $"Unmounting file systems: " umount -a -f -t noproc
+ runcmd $"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
-action $"Unmounting proc file system: " umount /proc
+runcmd $"Unmounting proc file system: " umount /proc
# Now halt or reboot.
echo $"$message"