
if [ `id -u` != 0 ] ; then
echo "run this as root"
exit
fi
if [ $# -lt 2 ] ; then
echo $0 image.jffs2 directory
exit
fi
LOOPDEV=`losetup -f`
losetup $LOOPDEV $1
modprobe block2mtd block2mtd=$LOOPDEV,131072
modprobe jffs2
modprobe mtdblock
sleep 1
[ -d $2 ] || mkdir $2
mount -t jffs2 -o ro /dev/mtdblock0 $2

| The Following User Says Thank You to fanoush For This Useful Post: | ||
flasher-3.0 -u -F SU-18_2007HACKER_4.2007.46-3_PR_F5_MR0_ARM.bin
losetup /dev/loop0 rootfs.jffs2
modprobe block2mtd block2mtd=/dev/loop0,131072
mount -t jffs2 -o ro /dev/mtdblock0 /mnt/jffs2/
tar -cf - -C /mnt/jffs . | tar xvf - -C /media/disk
| The Following User Says Thank You to benny1967 For This Useful Post: | ||