diff options
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 3 |
1 files changed, 3 insertions, 0 deletions
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 / |