diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-03 21:20:56 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-03 21:20:56 +0000 |
commit | f769262d897255df22f4e825a69e000d41c813d4 (patch) | |
tree | 8e3cc45df08d22b7a0a6b245392e4c87c635e84d /openwrt/target/default/target_skeleton/etc/init.d/S10boot | |
parent | 88e430882f875fd68d7dad11fbd40f863085e7a4 (diff) |
move firstboot from S99done to S10boot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@549 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/default/target_skeleton/etc/init.d/S10boot')
-rwxr-xr-x | openwrt/target/default/target_skeleton/etc/init.d/S10boot | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openwrt/target/default/target_skeleton/etc/init.d/S10boot b/openwrt/target/default/target_skeleton/etc/init.d/S10boot index 1a36583cc..e1f47ba27 100755 --- a/openwrt/target/default/target_skeleton/etc/init.d/S10boot +++ b/openwrt/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 +} |