wok-6.x rev 5599

Improve compcache receipt and config files
author Rohit Joshi <jozee@slitaz.org>
date Tue May 18 08:23:07 2010 -0400 (2010-05-18)
parents aae73869c238
children 5716a37ccf43
files compcache/receipt compcache/stuff/compcache compcache/stuff/compcache.conf
line diff
     1.1 --- a/compcache/receipt	Tue May 18 08:00:24 2010 -0400
     1.2 +++ b/compcache/receipt	Tue May 18 08:23:07 2010 -0400
     1.3 @@ -31,13 +31,13 @@
     1.4      KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
     1.5      EXTRAVERSION=_$KERNEL_VERSION
     1.6      
     1.7 -    mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc $fs/etc/init.d
     1.8 +    mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
     1.9 +    		$fs/etc/init.d \
    1.10 +    		$fs/usr/bin
    1.11      
    1.12 -    install -o root -m 644 $src/compcache.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.13 -    install -o root -m 644 $src/sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.14 -    install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_compress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.15 -    install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_decompress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.16 -
    1.17 +    install -o root -m 644 $src/ramzswap.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.18 +    install -o root -m 644 $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
    1.19 +    
    1.20      for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
    1.21          lzma e $i $i.gz && rm -f $i
    1.22      done
     2.1 --- a/compcache/stuff/compcache	Tue May 18 08:00:24 2010 -0400
     2.2 +++ b/compcache/stuff/compcache	Tue May 18 08:23:07 2010 -0400
     2.3 @@ -16,9 +16,10 @@
     2.4        exit 1
     2.5      fi
     2.6      echo -n "Loading module"
     2.7 -    modprobe compcache compcache_size_kbytes=$SIZE_KB
     2.8 +    modprobe ramzswap disksize_kb=$SIZE_KB
     2.9      status
    2.10      echo -n "Starting $NAME..."
    2.11 +    rzscontrol /dev/ramzswap0 --init
    2.12      swapon /dev/ramzswap0 -p 100
    2.13      status
    2.14      ;;
    2.15 @@ -29,9 +30,10 @@
    2.16      fi
    2.17      echo -n "Stopping $NAME... "
    2.18      swapoff /dev/ramzswap0    
    2.19 +    rzscontrol /dev/ramzswap0 --reset
    2.20      status
    2.21      echo -n "Unloding modules"
    2.22 -    rmmod compcache lzo1x_compress lzo1x_decompress xvmalloc
    2.23 +    rmmod ramzswap 
    2.24      status
    2.25      ;;
    2.26    *)
     3.1 --- a/compcache/stuff/compcache.conf	Tue May 18 08:00:24 2010 -0400
     3.2 +++ b/compcache/stuff/compcache.conf	Tue May 18 08:23:07 2010 -0400
     3.3 @@ -1,1 +1,1 @@
     3.4 -SIZE_KB=0
     3.5 +SIZE_KB=20480