aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-20 17:30:05 +0000
committerBill Nottingham <notting@redhat.com>1999-09-20 17:30:05 +0000
commit628e351b9d5a9c990cd862ba7f504c1ca4183585 (patch)
tree64531ce63e233dc3526d0cb28377d8cdf479dee6 /rc.d
parente0084ea34525c5f96d6781295dc7d914c65ded01 (diff)
downloadinitscripts-628e351b9d5a9c990cd862ba7f504c1ca4183585.tar
initscripts-628e351b9d5a9c990cd862ba7f504c1ca4183585.tar.gz
initscripts-628e351b9d5a9c990cd862ba7f504c1ca4183585.tar.bz2
initscripts-628e351b9d5a9c990cd862ba7f504c1ca4183585.tar.xz
initscripts-628e351b9d5a9c990cd862ba7f504c1ca4183585.zip
Don't use cut, it's in /usr/bin
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 7377385e..a08b9283 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -59,7 +59,7 @@ fi
# Turn off swap, then unmount file systems.
runcmd "Turning off swap and accounting" swapoff -a
# Turn off other swap that isn't in /etc/fstab
-OTHERSWAP=`cut -f1 -d " " /proc/swaps | tail +2`
+OTHERSWAP=`awk '! /^Filename/ { print $1 }' /proc/swaps`
[ -n "$OTHERSWAP" ] && swapoff $OTHERSWAP
[ -x /sbin/accton ] && /sbin/accton