aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-23 20:15:59 +0000
committerBill Nottingham <notting@redhat.com>2001-01-23 20:15:59 +0000
commit3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72 (patch)
tree0f0e78f3634deed3d2c36161430ecbdbd6b53bf2 /rc.d/init.d/halt
parenta4a25465cd2844d72bf518188b813c009450f505 (diff)
downloadinitscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar.gz
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar.bz2
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar.xz
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.zip
tag action, runcmd, etc. lines as well
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 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"