wok-current rev 16965

linux-zram: use half of total memory as defaut value
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Jul 31 21:59:15 2014 +0200 (2014-07-31)
parents c2ccc297128f
children c2376ae3c9ad
files linux-zram/receipt
line diff
     1.1 --- a/linux-zram/receipt	Thu Jul 31 17:41:18 2014 +0200
     1.2 +++ b/linux-zram/receipt	Thu Jul 31 21:59:15 2014 +0200
     1.3 @@ -32,7 +32,9 @@
     1.4  # Post install/remove commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	chroot "$root/" depmod -a $VERSION-slitaz
     1.8 +	chroot "$root/" depmod -a $VERSION-slitaz &&
     1.9 +	RAM=`cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g` &&
    1.10 +	echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf
    1.11  }
    1.12  
    1.13  post_remove()