wok rev 1963
slitaz-loram-http: add urliso= cmdline parameter
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 31 20:54:58 2008 +0000 (2008-12-31) |
parents | d80b670ad79a |
children | d37cb8649ac6 |
files | slitaz-loram-http/receipt |
line diff
1.1 --- a/slitaz-loram-http/receipt Wed Dec 31 16:16:07 2008 +0000 1.2 +++ b/slitaz-loram-http/receipt Wed Dec 31 20:54:58 2008 +0000 1.3 @@ -25,11 +25,11 @@ 1.4 i=$(($i-1)) 1.5 tag=$(grep "$tag" $1/etc/init.d/rcS) 1.6 if [ "$2" = "-R" ]; then 1.7 - line="-$(($i-50)),52 +$(($i-50)),2" 1.8 + line="-$(($i-52)),54 +$(($i-52)),2" 1.9 i="-" 1.10 else 1.11 grep -q 'from slitaz-loram-http package' $1/etc/init.d/rcS && return 1.12 - line="-$i,2 +$i,52" 1.13 + line="-$i,2 +$i,54" 1.14 i="+" 1.15 fi 1.16 patch -p0 <<EOF 1.17 @@ -58,7 +58,9 @@ 1.18 $i if [ -d /cdrom ]; then 1.19 $i /etc/init.d/network.sh 1.20 $i RUN_SCRIPTS="\$(echo \$RUN_SCRIPTS | sed 's/network.sh//')" 1.21 -$i /bin/httpfs http://mirror.slitaz.org/iso/$(cat /etc/slitaz-release)/flavors/slitaz-loram-cdrom.iso /cdrom 1.22 +$i URLISO=http://mirror.slitaz.org/iso/\$(cat /etc/slitaz-release)/flavors/slitaz-loram-cdrom.iso 1.23 +$i grep -q " urliso=" /proc/cmdline && URLISO=\$(cat /proc/cmdline | sed 's/.* urliso=\([^ ]*\).*/\1/') 1.24 +$i /bin/httpfs \$URLISO /cdrom 1.25 $i mount -o loop,ro /cdrom/*.iso /cdrom 1.26 $i if [ -d /.usr.rw -a -x /bin/funionfs ]; then 1.27 $i echo -n "Mounting /usr read-write... "