still not happy with the failsafe timing
authorMike Baker <mbm@openwrt.org>
Tue, 11 May 2004 04:09:47 +0000 (04:09 +0000)
committerMike Baker <mbm@openwrt.org>
Tue, 11 May 2004 04:09:47 +0000 (04:09 +0000)
SVN-Revision: 29

root/etc/preinit

index 6cb37c27e85d23be7d28e986836f70a85192f43e..25fedc1e68eff77bf45c4dd1557bae975b09f475 100755 (executable)
@@ -2,8 +2,9 @@
 mount none /proc -t proc
 insmod diag
 echo 0x01 > /proc/sys/diag
-mtd unlock mtd4
+sleep 1
 if /sbin/resetmon ; then
+  mtd unlock mtd4
   mount -t jffs2 /dev/mtdblock/4 /jffs
   pivot_root /jffs /jffs/rom
   mount none /dev -t devfs