summaryrefslogtreecommitdiff
path: root/package/block-mount/files/fstab.init
diff options
context:
space:
mode:
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-12 17:28:50 +0000
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-12 17:28:50 +0000
commitc98e83d466b041b49835a136e86421f9acec6331 (patch)
tree895a2740d765003f7bfadf4c5bf478f2f537866e /package/block-mount/files/fstab.init
parent36d52e89e78de227025e9222b2015a1b76c17142 (diff)
[package] block-mount: Attempt swapon a after mounting as well as before. This ensures that swap on a filesystem is enabled.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22150 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-mount/files/fstab.init')
-rw-r--r--package/block-mount/files/fstab.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/block-mount/files/fstab.init b/package/block-mount/files/fstab.init
index fdcd4f52a2..6aeee8f340 100644
--- a/package/block-mount/files/fstab.init
+++ b/package/block-mount/files/fstab.init
@@ -50,6 +50,7 @@ start() {
}
config_foreach do_swapon swap
config_foreach do_mount mount
+ config_foreach do_swapon swap # do swap a second time so that swap on filesystems is enabled
}
stop() {