diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2009-03-07 12:58:08 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2009-03-07 12:58:08 +0000 |
commit | 3ac154fc9c79b959edb7eff03388d2e470c90579 (patch) | |
tree | 045febe133f0cde45b87e963fa69307b60ce478d /package/base-files/files | |
parent | 2f1c2dc3a1a3e5de38d444f6502b37d974c2aa47 (diff) | |
download | mtk-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')
-rwxr-xr-x | package/base-files/files/etc/init.d/fstab | 1 |
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 } |