From: Felix Fietkau Date: Sun, 3 Apr 2005 21:20:56 +0000 (+0000) Subject: move firstboot from S99done to S10boot X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0808d84bf9dd07e1e7537c078610519ee8844a8c;p=librecmc%2Flibrecmc.git move firstboot from S99done to S10boot SVN-Revision: 549 --- diff --git a/openwrt/target/default/target_skeleton/etc/init.d/S10boot b/openwrt/target/default/target_skeleton/etc/init.d/S10boot index 1a36583cc2..e1f47ba278 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 +} diff --git a/openwrt/target/default/target_skeleton/etc/init.d/S99done b/openwrt/target/default/target_skeleton/etc/init.d/S99done index 8811e99bff..70eef460d7 100755 --- a/openwrt/target/default/target_skeleton/etc/init.d/S99done +++ b/openwrt/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