diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-20 17:30:05 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-20 17:30:05 +0000 |
commit | 628e351b9d5a9c990cd862ba7f504c1ca4183585 (patch) | |
tree | 64531ce63e233dc3526d0cb28377d8cdf479dee6 | |
parent | e0084ea34525c5f96d6781295dc7d914c65ded01 (diff) | |
download | initscripts-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
-rwxr-xr-x | rc.d/init.d/halt | 2 |
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 |