aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-09 14:36:20 +0000
committerBill Nottingham <notting@redhat.com>1999-09-09 14:36:20 +0000
commit513c7eead1ed817b14b2e4ff7269aa7f0948e48d (patch)
treedc05e8ad1377e840cde634b3dd1cd7947e5fc642 /rc.d/init.d
parenta75832bbf3e9375f323937e34822b42f94c849b1 (diff)
downloadinitscripts-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-xrc.d/init.d/halt3
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 /