diff options
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 5c50bf66..9a368cbf 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -53,7 +53,8 @@ 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` +OTHERSWAP=`cut -f1 -d " " /proc/swaps | tail +2` +[ -n "$OTHERSWAP" ] && swapoff $OTHERSWAP [ -x /sbin/accton ] && /sbin/accton runcmd "Unmounting file systems" umount -a -f |