mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
package/compcache: initialize swap driver and introduce a delay before mounting
SVN-Revision: 22368
This commit is contained in:
parent
88385e633d
commit
e622f65cc6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user