mirror of https://github.com/hak5/openwrt.git
move firstboot to preinit for now (until a better solution is implemented), required by /etc/config/network generator
SVN-Revision: 2830lede-17.01
parent
11c0b6ea1d
commit
00ade4d60c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue