From: acoul Date: Fri, 23 Jul 2010 13:51:22 +0000 (+0000) Subject: package/compcache: initialize swap driver and introduce a delay before mounting X-Git-Url: http://git.rohieb.name/openwrt.git/commitdiff_plain/c4c1131ec8ba3d855442730f2475799265da8ef8?ds=inline 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 --- 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