wok-4.x rev 4397
slitaz-loram-http: multi server support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 18 14:07:57 2009 +0200 (2009-10-18) |
parents | b5264e32fea6 |
children | c5b7e70f9a14 |
files | slitaz-loram-http/receipt |
line diff
1.1 --- a/slitaz-loram-http/receipt Fri Oct 16 16:08:20 2009 +0200 1.2 +++ b/slitaz-loram-http/receipt Sun Oct 18 14:07:57 2009 +0200 1.3 @@ -24,7 +24,7 @@ 1.4 tag="Handle kernel cmdline parameter config" 1.5 i=$(grep -n "$tag" $1/etc/init.d/rcS | cut -d: -f1) 1.6 i=$(($i-1)) 1.7 - len=71 1.8 + len=73 1.9 tag=$(grep "$tag" $1/etc/init.d/rcS) 1.10 if [ "$2" = "-R" ]; then 1.11 line="-$(($i-$len+2)),$len +$(($i-$len+2)),2" 1.12 @@ -75,9 +75,11 @@ 1.13 $i while [ -d /cdrom ]; do 1.14 $i /etc/init.d/network.sh 1.15 $i RUN_SCRIPTS="\$(echo \$RUN_SCRIPTS | sed 's/network.sh//')" 1.16 -$i URLISO=http://mirror.slitaz.org/iso/\$(cat /etc/slitaz-release)/flavors/slitaz-loram-cdrom.iso 1.17 -$i grep -q " urliso=" /proc/cmdline && URLISO=\$(cat /proc/cmdline | sed 's/.* urliso=\([^ ]*\).*/\1/') 1.18 -$i /bin/httpfs \$URLISO /cdrom 1.19 +$i URLISO=http://mirror.slitaz.org/iso/\$(cat /etc/slitaz-release)/flavors/slitaz-loram-cdrom.iso,http://download.tuxfamily.org/slitaz/iso/\$(cat /etc/slitaz-release)/flavors/slitaz-loram-cdrom.iso,http://slitaz.c3sl.ufpr.br/iso/\$(cat /etc/slitaz-release)/flavors/slitaz-loram-cdrom.iso 1.20 +$i grep -q " urliso=" /proc/cmdline && URLISO=\$(cat /proc/cmdline | sed 's/.* urliso=\([^ ]*\).*/\1/'),\$URLISO 1.21 +$i for i in \$(echo \$URLISO | sed 's/,/ /g'); do 1.22 +$i /bin/httpfs \$URLISO /cdrom && break 1.23 +$i done 1.24 $i mount -o loop,ro /cdrom/*.iso /cdrom 1.25 $i if [ -d /.usr.rw -a -x /bin/funionfs ]; then 1.26 $i echo -n "Mounting /usr read-write... "