#edit that as appropriate for your system LOOPBACK_DEVICE=/dev/loop0 test -w / if [ $? != 0 ]; then echo 'You must run this script as root' exit 1 fi umount $LOOPBACK_DEVICE # losetup -d $LOOPBACK_DEVICE rm -f $LOOPBACK_DEVICE rm -rf $RX71TMP # mknod $LOOPBACK_DEVICE b 7 99 if [ $? != 0 ]; then echo 'Unable to create loopback device '$LOOPBACK_DEVICE exit 1 fi