Thanks, Sunburnt,sunburnt wrote:Hi again Toni; I tested Wheezy, I`ll post that in it`s thread.
Where is your modded script.? I`m trying to get Deb Live`s layout.
Try out these code improvements if you have time:Code: Select all
#!/bin/bash ########### mount-sfs.sh ### From filemnt by Terry B. & Barry K. set -x [ "$1" ]|| exit 1 imgFile=$1 [ "${imgFile##/*}" = '\.' ]&& imgFile="`pwd`${imgFile#.}" Mnt=/media/`echo $imgFile |sed 's#^\.##g;s#/#+#g'` Ext=${imgFile##*.} # get file type from extension case $Ext in 2fs) Type=ext2 3fs) Type=ext3 4fs) Type=ext4 ext2) Type=ext2 ext3) Type=ext3 ext4) Type=ext4 sfs) Type=squashfs squashfs) Type=squashfs sq) Type=squashfs iso) Type=iso9660 img) Type=ext2 esac mkdir -p $Mnt mount -t $Type -o loop $imgFile $Mnt xfe -d $Mnt
I will test it today.
Path to the script is /scripts/mount-sfs
When you open XFE right click on sfs or squashfs and choose properties. From there you can add program or script for open, edit etc this type of file.
Cheers, Toni