diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-09 14:36:20 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-09 14:36:20 +0000 |
commit | 513c7eead1ed817b14b2e4ff7269aa7f0948e48d (patch) | |
tree | dc05e8ad1377e840cde634b3dd1cd7947e5fc642 /rc.d/init.d | |
parent | a75832bbf3e9375f323937e34822b42f94c849b1 (diff) | |
download | initscripts-513c7eead1ed817b14b2e4ff7269aa7f0948e48d.tar initscripts-513c7eead1ed817b14b2e4ff7269aa7f0948e48d.tar.gz initscripts-513c7eead1ed817b14b2e4ff7269aa7f0948e48d.tar.bz2 initscripts-513c7eead1ed817b14b2e4ff7269aa7f0948e48d.tar.xz initscripts-513c7eead1ed817b14b2e4ff7269aa7f0948e48d.zip |
swapoff swap that isn't in /etc/fstab, too.
Diffstat (limited to 'rc.d/init.d')
-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 / |