Hacks to run firstboot automatically
[openwrt/svn-archive/archive.git] / root / etc / init.d / S99done
index c5211813fb6e9482aa392b931114850233d83f5b..3ba15e8bc46d51d8ab65b29a2014f6f4eb6cc161 100755 (executable)
@@ -1,3 +1,6 @@
 #!/bin/sh
+[ -z "$FAILSAFE" ] && {
+       { mount | grep jffs2 1>-; } || firstboot
+}
 # turn off DMZ led
 echo "0x00" > /proc/sys/diag