# HG changeset patch # User "Eric Joseph-Alexandre " # Date 1230632306 0 # Node ID c972d94bee82f6ae5e06730aca699e2a102c3b7a # Parent 17fd08db4c1655ddad40c563e1be4977f7cff7e4 Now can mount ISO on other distro. diff -r 17fd08db4c16 -r c972d94bee82 tazusb --- a/tazusb Thu Oct 23 20:54:49 2008 +0200 +++ b/tazusb Tue Dec 30 10:18:26 2008 +0000 @@ -170,8 +170,15 @@ test -d /media/cdrom || mkdir -p /media/cdrom + # Add support to other distros. + if [ ! -f /etc/slitaz-version ]; then + OPTIONS="-o loop" + else + OPTIONS="" + fi + echo "Mounting `basename $ISO`..." - mount $ISO /media/cdrom 2>/dev/null + mount $OPTIONS $ISO /media/cdrom 2>/dev/null if [ ! -f /media/cdrom/boot/rootfs.gz ]; then echo -e "\nUnable to mount iso or to find a filesystem on it (rootfs.gz).\n"