move firstboot from S99done to S10boot
[15.05/openwrt.git] / target / default / target_skeleton / etc / init.d / S10boot
index 1a36583..e1f47ba 100755 (executable)
@@ -35,3 +35,8 @@ HOSTNAME=${HOSTNAME%%.*}
 echo ${HOSTNAME:=OpenWrt} > /proc/sys/kernel/hostname
 
 vconfig set_name_type VLAN_PLUS_VID_NO_PAD
+
+# automagically run firstboot
+[ -z "$FAILSAFE" ] && {
+       { mount | grep jffs2 1>&-; } || firstboot
+}