move firstboot to preinit for now (until a better solution is implemented), required by /etc/config/network generator

SVN-Revision: 2830
lede-17.01
Felix Fietkau 2006-01-04 23:50:17 +00:00
parent 11c0b6ea1d
commit 00ade4d60c
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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