tazusb rev 34

Now can mount ISO on other distro.
author "Eric Joseph-Alexandre <erjo@slitaz.org>"
date Tue Dec 30 10:18:26 2008 +0000 (2008-12-30)
parents 17fd08db4c16
children 4b4a49e1d93d
files tazusb
line diff
     1.1 --- a/tazusb	Thu Oct 23 20:54:49 2008 +0200
     1.2 +++ b/tazusb	Tue Dec 30 10:18:26 2008 +0000
     1.3 @@ -170,8 +170,15 @@
     1.4  	
     1.5  	test -d /media/cdrom || mkdir -p /media/cdrom
     1.6  	
     1.7 +	# Add support to other distros.
     1.8 +    if [ ! -f /etc/slitaz-version ]; then
     1.9 +         OPTIONS="-o loop"
    1.10 +    else
    1.11 +         OPTIONS=""
    1.12 +    fi
    1.13 +	
    1.14  	echo  "Mounting `basename $ISO`..."
    1.15 -	mount $ISO /media/cdrom 2>/dev/null
    1.16 +	mount $OPTIONS $ISO /media/cdrom 2>/dev/null
    1.17  	
    1.18  	if [ ! -f /media/cdrom/boot/rootfs.gz ]; then
    1.19  		echo -e "\nUnable to mount iso or to find a filesystem on it (rootfs.gz).\n"