move to new init.d structure
[openwrt-10.03/.git] / root / etc / preinit
index 26025f454e4096e3b09276c5751c9c9676216937..ccd3ab5bee6d94c6b28a5c0d82da49f36eb7ea91 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 mount none /proc -t proc
+mtd unlock mtd4
 if /sbin/resetmon ; then
-  mtd unlock mtd4
   mount -t jffs2 /dev/mtdblock/4 /jffs
   pivot_root /jffs /jffs/rom
   mount none /dev -t devfs