summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2009-03-07 12:58:08 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2009-03-07 12:58:08 +0000
commit3ac154fc9c79b959edb7eff03388d2e470c90579 (patch)
tree045febe133f0cde45b87e963fa69307b60ce478d /package/base-files/files/etc/init.d
parent2f1c2dc3a1a3e5de38d444f6502b37d974c2aa47 (diff)
downloadmtk-20170518-3ac154fc9c79b959edb7eff03388d2e470c90579.zip
mtk-20170518-3ac154fc9c79b959edb7eff03388d2e470c90579.tar.gz
mtk-20170518-3ac154fc9c79b959edb7eff03388d2e470c90579.tar.bz2
On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin
SVN-Revision: 14770
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-xpackage/base-files/files/etc/init.d/fstab1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/fstab b/package/base-files/files/etc/init.d/fstab
index b7cc209..840350c 100755
--- a/package/base-files/files/etc/init.d/fstab
+++ b/package/base-files/files/etc/init.d/fstab
@@ -62,5 +62,6 @@ stop() {
config_load fstab
config_foreach do_unmount mount
config_foreach do_swapoff swap
+ [ -x /sbin/swapoff ] && swapoff -a
}