wok rev 18743

linux*zram: add CONFIG_FILES
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 25 17:07:16 2015 +0100 (2015-12-25)
parents 6526589b64f8
children 510d209b062d
files linux-zram/receipt linux64-zram/receipt
line diff
     1.1 --- a/linux-zram/receipt	Fri Dec 25 17:11:02 2015 +0200
     1.2 +++ b/linux-zram/receipt	Fri Dec 25 17:07:16 2015 +0100
     1.3 @@ -7,6 +7,7 @@
     1.4  MAINTAINER="devel@slitaz.org"
     1.5  LICENSE="GPL2"
     1.6  WEB_SITE="http://www.kernel.org/"
     1.7 +CONFIG_FILES="/etc/compcache.conf"
     1.8  WANTED="linux"
     1.9  PROVIDE="compcache"
    1.10  
    1.11 @@ -35,6 +36,13 @@
    1.12  	chroot "$root/" depmod -a $VERSION-slitaz &&
    1.13  	RAM=`cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g` &&
    1.14  	echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf
    1.15 +	cat <<EOT
    1.16 +You can add compressed swap according /etc/compcache.conf configuration with:
    1.17 +
    1.18 +# /etc/init.d/compcache start
    1.19 +
    1.20 +Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
    1.21 +EOT
    1.22  }
    1.23  
    1.24  post_remove()
     2.1 --- a/linux64-zram/receipt	Fri Dec 25 17:11:02 2015 +0200
     2.2 +++ b/linux64-zram/receipt	Fri Dec 25 17:07:16 2015 +0100
     2.3 @@ -7,6 +7,7 @@
     2.4  MAINTAINER="devel@slitaz.org"
     2.5  LICENSE="GPL2"
     2.6  WEB_SITE="http://www.kernel.org/"
     2.7 +CONFIG_FILES="/etc/compcache.conf"
     2.8  WANTED="linux"
     2.9  PROVIDE="compcache:linux64 linux-zram:linux64"
    2.10  
    2.11 @@ -36,6 +37,13 @@
    2.12  post_install()
    2.13  {
    2.14  	chroot "$root/" depmod -a $VERSION-slitaz64
    2.15 +	cat <<EOT
    2.16 +You can add compressed swap according /etc/compcache.conf configuration with:
    2.17 +
    2.18 +# /etc/init.d/compcache start
    2.19 +
    2.20 +Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
    2.21 +EOT
    2.22  }
    2.23  
    2.24  post_remove()