# HG changeset patch # User Rohit Joshi # Date 1274185387 14400 # Node ID 637d4b17803d7de7ae422793e40a23f011cc02da # Parent aae73869c238f02e5e300a72152ae179b9552e8c Improve compcache receipt and config files diff -r aae73869c238 -r 637d4b17803d compcache/receipt --- a/compcache/receipt Tue May 18 08:00:24 2010 -0400 +++ b/compcache/receipt Tue May 18 08:23:07 2010 -0400 @@ -31,13 +31,13 @@ KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` EXTRAVERSION=_$KERNEL_VERSION - mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc $fs/etc/init.d + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \ + $fs/etc/init.d \ + $fs/usr/bin - install -o root -m 644 $src/compcache.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc - install -o root -m 644 $src/sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc - install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_compress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc - install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_decompress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc - + install -o root -m 644 $src/ramzswap.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc + install -o root -m 644 $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin + for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do lzma e $i $i.gz && rm -f $i done diff -r aae73869c238 -r 637d4b17803d compcache/stuff/compcache --- a/compcache/stuff/compcache Tue May 18 08:00:24 2010 -0400 +++ b/compcache/stuff/compcache Tue May 18 08:23:07 2010 -0400 @@ -16,9 +16,10 @@ exit 1 fi echo -n "Loading module" - modprobe compcache compcache_size_kbytes=$SIZE_KB + modprobe ramzswap disksize_kb=$SIZE_KB status echo -n "Starting $NAME..." + rzscontrol /dev/ramzswap0 --init swapon /dev/ramzswap0 -p 100 status ;; @@ -29,9 +30,10 @@ fi echo -n "Stopping $NAME... " swapoff /dev/ramzswap0 + rzscontrol /dev/ramzswap0 --reset status echo -n "Unloding modules" - rmmod compcache lzo1x_compress lzo1x_decompress xvmalloc + rmmod ramzswap status ;; *) diff -r aae73869c238 -r 637d4b17803d compcache/stuff/compcache.conf --- a/compcache/stuff/compcache.conf Tue May 18 08:00:24 2010 -0400 +++ b/compcache/stuff/compcache.conf Tue May 18 08:23:07 2010 -0400 @@ -1,1 +1,1 @@ -SIZE_KB=0 +SIZE_KB=20480