slitaz-tools rev 491

slitaz-installer: add tiny web boot support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 16:15:05 2010 +0200 (2010-07-05)
parents df6faf2d9142
children d2c5ec45b766
files installer/slitaz-installer
line diff
     1.1 --- a/installer/slitaz-installer	Sat May 01 15:46:47 2010 +0200
     1.2 +++ b/installer/slitaz-installer	Mon Jul 05 16:15:05 2010 +0200
     1.3 @@ -120,16 +120,22 @@
     1.4  		echo -e "\nUsing files from cdrom ($CDROM)..."
     1.5  		echo "XXX"
     1.6  		sleep 2
     1.7 -	else
     1.8 -		# We may be in LiveUSB mode
     1.9 -		if [ -d /home/boot ]; then
    1.10 -			echo "XXX" && echo 60
    1.11 -			echo -e "\nUsing files from USB device..."
    1.12 -			echo "XXX"
    1.13 -			rm /media/cdrom/boot 2>/dev/null
    1.14 -			ln -s /home/boot /media/cdrom/boot
    1.15 -			sleep 2
    1.16 -		fi
    1.17 +	# We may be in LiveUSB mode
    1.18 +	elif [ -d /home/boot ]; then
    1.19 +		echo "XXX" && echo 60
    1.20 +		echo -e "\nUsing files from USB device..."
    1.21 +		echo "XXX"
    1.22 +		rm /media/cdrom/boot 2>/dev/null
    1.23 +		ln -s /home/boot /media/cdrom/boot
    1.24 +		sleep 2
    1.25 +	# We may be in Tiny Web boot mode
    1.26 +	elif [ -d /cdrom/boot ]; then
    1.27 +		echo "XXX" && echo 60
    1.28 +		echo -e "\nUsing files from HTTP device..."
    1.29 +		echo "XXX"
    1.30 +		rm /media/cdrom/boot 2>/dev/null
    1.31 +		ln -s /cdrom/boot /media/cdrom/boot
    1.32 +		sleep 2
    1.33  	fi
    1.34  
    1.35  	echo "XXX" && echo 90