aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-07-23 13:51:22 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-07-23 13:51:22 +0000
commit3ec4301d47ff61e1f9010f66d466216cebb59e62 (patch)
tree2aa88ab0cb868c08b84347e906954d40791f717a
parenta755d67ce89005eebb11b5ff2a3464ca9096b761 (diff)
downloadmaster-187ad058-3ec4301d47ff61e1f9010f66d466216cebb59e62.tar.gz
master-187ad058-3ec4301d47ff61e1f9010f66d466216cebb59e62.tar.bz2
master-187ad058-3ec4301d47ff61e1f9010f66d466216cebb59e62.zip
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 ec377ffaa8..aa5d782e54 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