wok diff slitaz-loram-cdrom/receipt @ rev 390
Slitaz-loram-cdrom: decrease memory footprint a bit
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 09 13:00:33 2008 +0000 (2008-03-09) |
parents | c9546c686c60 |
children | e0ad9f116fca |
line diff
1.1 --- a/slitaz-loram-cdrom/receipt Sat Mar 08 20:27:10 2008 +0100 1.2 +++ b/slitaz-loram-cdrom/receipt Sun Mar 09 13:00:33 2008 +0000 1.3 @@ -26,7 +26,7 @@ 1.4 line="-$(($i-24)),26 +$(($i-24)),2" 1.5 i="-" 1.6 else 1.7 - grep -q 'if [ -d /cdrom ]; then' $1/etc/init.d/rcS && return 1.8 + grep -q 'from slitaz-loram-cdrom package' $1/etc/init.d/rcS && return 1.9 line="-$i,2 +$i,26" 1.10 i="+" 1.11 fi 1.12 @@ -35,7 +35,7 @@ 1.13 +++ $1/etc/init.d/rcS 1.14 @@ $line @@ 1.15 1.16 -$i# Mount /usr 1.17 +$i# Mount /usr (from slitaz-loram-cdrom package) 1.18 $i if [ -d /cdrom ]; then 1.19 $i mount -o ro -t iso9660 /dev/cdrom /cdrom 1.20 $i if [ -d /.usr.rw -a -x /bin/funionfs ]; then 1.21 @@ -68,9 +68,11 @@ 1.22 pre_install() 1.23 { 1.24 local i 1.25 + . /etc/tazlito/tazlito.conf 1.26 for i in $(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null); do 1.27 [ "$i" = "$PACKAGE" ] && continue 1.28 yes y | tazpkg remove $i 1.29 + rm -f $PACKAGES_REPOSITORY/slitaz-boot-scripts-*.tazpkg 2> /dev/null 1.30 done 1.31 } 1.32 1.33 @@ -79,9 +81,12 @@ 1.34 set_patch "$1" 1.35 if [ ! -x /bin/funionfs ]; then 1.36 cat <<EOF 1.37 +---- 1.38 You will build a live CD with /usr mounted read-only. 1.39 -You can install funionfs to have read-write access to /usr with: 1.40 +You can install funionfs to have read-write access into /usr with: 1.41 + 1.42 # tazpkg get-install funionfs 1.43 + 1.44 EOF 1.45 fi 1.46 }