diff options
Diffstat (limited to 'target/default/target_skeleton/etc')
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S10boot | 5 | ||||
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S99done | 4 |
2 files changed, 5 insertions, 4 deletions
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 +} diff --git a/target/default/target_skeleton/etc/init.d/S99done b/target/default/target_skeleton/etc/init.d/S99done index 8811e99bf..70eef460d 100755 --- a/target/default/target_skeleton/etc/init.d/S99done +++ b/target/default/target_skeleton/etc/init.d/S99done @@ -1,7 +1,3 @@ #!/bin/sh -# automagically run firstboot -[ -z "$FAILSAFE" ] && { - { mount | grep jffs2 1>&-; } || firstboot -} # set leds to normal state echo "0x00" > /proc/sys/diag |