rendered paste body...
echo "firstboot is already running"
return
}
touch /tmp/.firstboot
# jdev=$(mount | awk '/jffs2/ {print $3}')
#
# if [ -z "$jdev" ]; then
# echo -n "Creating jffs2 partition... "
# mtd erase OpenWrt >&- 2>&-
# mount -t jffs2 /dev/mtdblock/4 /jffs
# echo "done"
# cd /jffs
# else
# echo "firstboot has already been run"
# echo "jffs2 partition is mounted, only resetting files"
# cd $jdev
# fi
mount none /jffs -t tmpfs
cd /jffs
exec 2>/dev/null
mount /dev/mtdblock/2 /rom -o ro
echo -n "creating directories... "
...