# HG changeset patch # User Pascal Bellard # Date 1205067503 0 # Node ID 5b4e22afe7993b5cf069dd7b5913954fe1af9ac4 # Parent 401917ccfc5ab7e58a6ccaad9bc12f891a6351c2 Slitaz-loram: support both cromfs and squashfs diff -r 401917ccfc5a -r 5b4e22afe799 slitaz-loram/receipt --- a/slitaz-loram/receipt Sun Mar 09 12:15:39 2008 +0100 +++ b/slitaz-loram/receipt Sun Mar 09 12:58:23 2008 +0000 @@ -24,11 +24,11 @@ i=$(($i-1)) tag=$(grep "$tag" $1/etc/init.d/rcS) if [ "$2" = "-R" ]; then - line="-$(($i-13)),15 +$(($i-13)),2" + line="-$(($i-21)),23 +$(($i-21)),2" i="-" else - grep -q 'if [ -f /.usr.cromfs ]; then' $1/etc/init.d/rcS && return - line="-$i,2 +$i,15" + grep -q 'from slitaz-loram package' $1/etc/init.d/rcS && return + line="-$i,2 +$i,23" i="+" fi patch -p0 < /dev/null); do [ "$i" = "$PACKAGE" ] && continue yes y | tazpkg remove $i + rm -f $PACKAGES_REPOSITORY/slitaz-boot-scripts-*.tazpkg 2> /dev/null done } post_install() { - set_patch "$1" + local root + root=$1 + set_patch "$root" if [ ! -x /bin/funionfs ]; then cat <