X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0995de955ee0f3a7b9a1ab6616436c467fa54889..c4769dfdb0be244a06121aba56a7f6acf36e4cf1:/target/default/target_skeleton/etc/init.d/S10boot diff --git a/target/default/target_skeleton/etc/init.d/S10boot b/target/default/target_skeleton/etc/init.d/S10boot index 1a36583cc..e1f47ba27 100755 --- a/target/default/target_skeleton/etc/init.d/S10boot +++ b/target/default/target_skeleton/etc/init.d/S10boot @@ -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 +}