wok diff compcache/stuff/compcache @ rev 11801

syslinux: fix ifmem.c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 25 11:52:40 2012 +0100 (2012-02-25)
parents 2fea1271d9d2
children
line diff
     1.1 --- a/compcache/stuff/compcache	Sun Feb 22 11:19:51 2009 +0100
     1.2 +++ b/compcache/stuff/compcache	Sat Feb 25 11:52:40 2012 +0100
     1.3 @@ -16,9 +16,10 @@
     1.4        exit 1
     1.5      fi
     1.6      echo -n "Loading module"
     1.7 -    modprobe compcache compcache_size_kbytes=$SIZE_KB
     1.8 +    modprobe ramzswap disksize_kb=$SIZE_KB
     1.9      status
    1.10      echo -n "Starting $NAME..."
    1.11 +    rzscontrol /dev/ramzswap0 --init
    1.12      swapon /dev/ramzswap0 -p 100
    1.13      status
    1.14      ;;
    1.15 @@ -29,9 +30,10 @@
    1.16      fi
    1.17      echo -n "Stopping $NAME... "
    1.18      swapoff /dev/ramzswap0    
    1.19 +    rzscontrol /dev/ramzswap0 --reset
    1.20      status
    1.21      echo -n "Unloding modules"
    1.22 -    rmmod compcache lzo1x_compress lzo1x_decompress xvmalloc
    1.23 +    rmmod ramzswap 
    1.24      status
    1.25      ;;
    1.26    *)