Browse Source

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

SVN-Revision: 22368
Alexandros C. Couloumbis 15 years ago
parent
commit
e622f65cc6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/compcache/files/compcache.init

+ 2 - 0
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