X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/95263b3ec73a8470ce4c3ea0ca09e835f7583b47..c67467946b3f2b75d3198260aa9057ce8cefd74d:/root/etc/preinit diff --git a/root/etc/preinit b/root/etc/preinit index 6cb37c27e..099d2dc56 100755 --- a/root/etc/preinit +++ b/root/etc/preinit @@ -2,9 +2,10 @@ mount none /proc -t proc insmod diag echo 0x01 > /proc/sys/diag -mtd unlock mtd4 +sleep 1 if /sbin/resetmon ; then - mount -t jffs2 /dev/mtdblock/4 /jffs + mount -t jffs2 /dev/mtdblock/4 /jffs && \ + mtd unlock mtd4 & pivot_root /jffs /jffs/rom mount none /dev -t devfs mount none /proc -t proc