package/compcache: initialize swap driver and introduce a delay before mounting
authorAlexandros C. Couloumbis <alex@ozo.com>
Fri, 23 Jul 2010 13:51:22 +0000 (13:51 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Fri, 23 Jul 2010 13:51:22 +0000 (13:51 +0000)
SVN-Revision: 22368

package/compcache/files/compcache.init

index ec377ffaa8539f71313ae7feed51fe285344251a..aa5d782e543659a358afc95765ad52667e76f17e 100644 (file)
@@ -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