Code:
--- /home/knoppix/.zAppRun.safe 2005-06-07 22:01:48.630717768 +0100
+++ /home/knoppix/.zAppRun 2005-06-07 22:58:12.242330616 +0100
@@ -4,6 +4,8 @@
# thanks to bfree
# GPL
+OFFSET=1024
+
# ok we need dialogs now
if [ -z "$DIALOG" ] ; then
# Determine which dialog to use in which situation:
@@ -111,9 +113,11 @@
esac
# determine which filesystem is used as .cmg
-file $CMG | grep ": data" >/dev/null && FS=squashfs # who knows a better way to recognize it?
-file $CMG | grep "Compressed ROM" >/dev/null && FS=cramfs
-file $CMG | grep "ISO 9660" >/dev/null && FS=iso9660
+# BUG :: FIX :: TODO
+# Add some math so these don't have to be handupdated it offset changes
+head -c 1028 $CMG | tail -c 4| grep "hsqs" >/dev/null && FS=squashfs
+head -c 1056 $CMG | tail -c 16 | grep "Compressed ROMFS" >/dev/null && FS=cramfs
+head -c 33798 $CMG | tail -n 5 | grep "CD001" >/dev/null && FS=iso9660
if [ -n "$FS" ]
then
@@ -154,7 +158,7 @@
fi
SUCMD="$SUCMD echo \"#Added by klik (klik.atekon.de)\" >> /etc/fstab "
for i in 1 2 3 4 5 6 7; do
- SUCMD="$SUCMD ; echo \"/mnt/app/$i/image /mnt/app/$i cramfs,iso9660 user,noauto,ro,loop,exec 0 0\" >> /etc/fstab";
+ SUCMD="$SUCMD ; echo \"/mnt/app/$i/image /mnt/app/$i cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0\" >> /etc/fstab";
done
fi
@@ -192,13 +196,13 @@
As root, please make /mnt/app writeable and add the following lines:
#######################################################################
-/mnt/app/1/image /mnt/app/1 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
-/mnt/app/2/image /mnt/app/2 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
-/mnt/app/3/image /mnt/app/3 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
-/mnt/app/4/image /mnt/app/4 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
-/mnt/app/5/image /mnt/app/5 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
-/mnt/app/6/image /mnt/app/6 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
-/mnt/app/7/image /mnt/app/7 cramfs,iso960 user,noauto,ro,loop,exec 0 0
+/mnt/app/1/image /mnt/app/1 cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
+/mnt/app/2/image /mnt/app/2 cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
+/mnt/app/3/image /mnt/app/3 cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
+/mnt/app/4/image /mnt/app/4 cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
+/mnt/app/5/image /mnt/app/5 cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
+/mnt/app/6/image /mnt/app/6 cramfs,iso9660 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
+/mnt/app/7/image /mnt/app/7 cramfs,iso960 offset=$OFFSET,user,noauto,ro,loop,exec 0 0
#######################################################################"
exit 1
fi
Right, now all you have to do is get yourself the right sort of cmg/.desktop hybrid. What I did was created a basic .desktop called xvier.desktop (and I put it on the Desktop) to start with which looks like: