wok-stable diff slitaz-loram-cdrom/receipt @ rev 4503

slitaz-loram*: extract by default
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 22 12:40:18 2009 +0100 (2009-11-22)
parents d9ddcc6d973c
children 7ae478e2ad1e
line diff
     1.1 --- a/slitaz-loram-cdrom/receipt	Sun Nov 08 12:55:54 2009 +0100
     1.2 +++ b/slitaz-loram-cdrom/receipt	Sun Nov 22 12:40:18 2009 +0100
     1.3 @@ -44,7 +44,7 @@
     1.4  $i {
     1.5  $i	FREEMEM=\$(free | awk '{ n = \$NF } END { print n }')	
     1.6  $i	if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then
     1.7 -$i		if grep -q " extract-loram" /proc/cmdline &&
     1.8 +$i		if ! grep -q " keep-loram" /proc/cmdline &&
     1.9  $i		    [ -d \$FS -o \$FREEMEM -gt \$(du -s \$FS | \\
    1.10  $i			awk '{ print (\$1*4)+40000 }') ]; then
    1.11  $i			echo -n "Extracting loram..."
    1.12 @@ -170,6 +170,11 @@
    1.13  post_install()
    1.14  {
    1.15      set_patch "$1"
    1.16 +    cat <<EOF
    1.17 +----
    1.18 +'tazlito gen-distro' will create a loram-cdrom flavor
    1.19 +while this package is installed.
    1.20 +EOF
    1.21      if [ ! -x $1/bin/funionfs -a ! -d $1/var/lib/tazpkg/installed/aufs ]; then
    1.22          cat <<EOF
    1.23  ----
    1.24 @@ -188,4 +193,8 @@
    1.25  pre_remove()
    1.26  {
    1.27      set_patch '' -R 
    1.28 +    cat <<EOF
    1.29 +----
    1.30 +'tazlito gen-distro' will work as expected now.
    1.31 +EOF
    1.32  }