summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-23 13:51:22 +0000
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-23 13:51:22 +0000
commitc4c1131ec8ba3d855442730f2475799265da8ef8 (patch)
tree2aa88ab0cb868c08b84347e906954d40791f717a
parent3a2279a57312d440fb47aed24bb8d145cad44636 (diff)
package/compcache: initialize swap driver and introduce a delay before mounting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22368 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/compcache/files/compcache.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/compcache/files/compcache.init b/package/compcache/files/compcache.init
index ec377ffaa..aa5d782e5 100644
--- a/package/compcache/files/compcache.init
+++ b/package/compcache/files/compcache.init
@@ -20,6 +20,8 @@ load_modules() {
if [ "`lsmod | grep 'ramzswap'`" == "" ]; then
insmod lzo1x
insmod ramzswap $params_set
+ rzscontrol /dev/ramzswap0 --init
+ sleep 2
swapon /dev/ramzswap0
fi
fi