mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
move firstboot to preinit for now (until a better solution is implemented), required by /etc/config/network generator
SVN-Revision: 2830
This commit is contained in:
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
Block a user