From 513c7eead1ed817b14b2e4ff7269aa7f0948e48d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 9 Sep 1999 14:36:20 +0000 Subject: swapoff swap that isn't in /etc/fstab, too. --- rc.d/init.d/halt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d/init.d/halt') diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 02621122..f9ed0389 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -52,6 +52,9 @@ halt -w # 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 +swapoff `cut -f1 -d " " /proc/swaps | tail +2` + [ -x /sbin/accton ] && /sbin/accton runcmd "Unmounting file systems" umount -a -f mount -n -o remount,ro / -- cgit v1.2.1