[package] update compcache to 0.6.2 (#6884)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20303 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Florian Fainelli
2010-03-19 16:34:41 +00:00
parent 34109ec127
commit d19437f843
5 changed files with 57 additions and 124 deletions

View File

@@ -18,7 +18,6 @@ load_modules() {
params_set="disksize_kb=$size_kbytes"
fi
if [ "`lsmod | grep 'ramzswap'`" == "" ]; then
insmod xvmalloc
insmod lzo1x
insmod ramzswap $params_set
swapon /dev/ramzswap0
@@ -34,7 +33,6 @@ remove_modules() {
[ "`cat /proc/swaps | grep 'ramzswap0'`" != "" ] && swapoff /dev/ramzswap0
[ "`lsmod | grep 'ramzswap'`" != "" ] && rmmod ramzswap &> /dev/null
[ "`lsmod | grep 'lzo1x'`" != "" ] && rmmod lzo1x &> /dev/null
[ "`lsmod | grep 'xvmalloc'`" != "" ] && rmmod xvmalloc &> /dev/null
fi
}