From 628e351b9d5a9c990cd862ba7f504c1ca4183585 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 20 Sep 1999 17:30:05 +0000 Subject: Don't use cut, it's in /usr/bin --- rc.d/init.d/halt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d/halt') 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 -- cgit v1.2.1