package/compcache: initialize swap driver and introduce a delay before mounting

SVN-Revision: 22368
lede-17.01
Alexandros C. Couloumbis 2010-07-23 13:51:22 +00:00
parent 88385e633d
commit e622f65cc6
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ load_modules() {
if [ "`lsmod | grep 'ramzswap'`" == "" ]; then if [ "`lsmod | grep 'ramzswap'`" == "" ]; then
insmod lzo1x insmod lzo1x
insmod ramzswap $params_set insmod ramzswap $params_set
rzscontrol /dev/ramzswap0 --init
sleep 2
swapon /dev/ramzswap0 swapon /dev/ramzswap0
fi fi
fi fi