I know for sure I've set my flip/flop wrong, They were /dev/sdb1/KNOPPIX and /dev/loop2 respectively.
For some reason it just gave me "error on line 61" and then something with the = sign.
went to line 61 and removed it

then it always gave me this:
Code:
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
So I went to see where grep was used, it was where you were trying to figure out what directory was in use and what was free.
So I commented out the ifs and simply made it
Code:
DST="${FLOP}";
at my great suprise that actually started to create a squashfs filesystem at
/mnt-system/
guess my flop is kinda wrong.

But hey, at least I got it running with my messing around.
I do think that that equal sign is not supposed to be there on line 61 and that those grep errors where caused because of my wrong flipflops?
I'm going to read it when my brain is relaxed and try to understand it completely although It won't be that big of a deal because the script is well comented