diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-04 23:50:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-04 23:50:17 +0000 |
commit | 00ade4d60cf3ad27f4c4afaa71936f5e19c6099f (patch) | |
tree | f344255affa28c463275319ecc0ae69dfac9631f /openwrt/package/base-files/default/etc | |
parent | 11c0b6ea1de45550e3ff15b52171de0b6773bb09 (diff) | |
download | mtk-20170518-00ade4d60cf3ad27f4c4afaa71936f5e19c6099f.zip mtk-20170518-00ade4d60cf3ad27f4c4afaa71936f5e19c6099f.tar.gz mtk-20170518-00ade4d60cf3ad27f4c4afaa71936f5e19c6099f.tar.bz2 |
move firstboot to preinit for now (until a better solution is implemented), required by /etc/config/network generator
SVN-Revision: 2830
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rwxr-xr-x | openwrt/package/base-files/default/etc/init.d/S10boot | 5 | ||||
-rwxr-xr-x | openwrt/package/base-files/default/etc/preinit | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S10boot b/openwrt/package/base-files/default/etc/init.d/S10boot index 9dd0beb..02fddee 100755 --- a/openwrt/package/base-files/default/etc/init.d/S10boot +++ b/openwrt/package/base-files/default/etc/init.d/S10boot @@ -11,11 +11,6 @@ HOSTNAME=$(nvram get wan_hostname) HOSTNAME=${HOSTNAME%%.*} echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname -# automagically run firstboot -[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && { - { mount|grep "on / type jffs2" 1>&-; } || firstboot -} - mkdir -p /var/run mkdir -p /var/log touch /var/log/wtmp diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit index 88c8920..ac9039c 100755 --- a/openwrt/package/base-files/default/etc/preinit +++ b/openwrt/package/base-files/default/etc/preinit @@ -16,4 +16,9 @@ fi mount_root ${FAILSAFE:+failsafe} +# automagically run firstboot +[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && { + { mount|grep "on / type jffs2" 1>&-; } || firstboot +} + exec /sbin/init |