mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-26 04:44:39 +02:00
move firstboot to preinit for now (until a better solution is implemented), required by /etc/config/network generator
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2830 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
81ec17e004
commit
4bb342946e
@ -11,11 +11,6 @@ HOSTNAME=$(nvram get wan_hostname)
|
|||||||
HOSTNAME=${HOSTNAME%%.*}
|
HOSTNAME=${HOSTNAME%%.*}
|
||||||
echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/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/run
|
||||||
mkdir -p /var/log
|
mkdir -p /var/log
|
||||||
touch /var/log/wtmp
|
touch /var/log/wtmp
|
||||||
|
@ -16,4 +16,9 @@ fi
|
|||||||
|
|
||||||
mount_root ${FAILSAFE:+failsafe}
|
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
|
exec /sbin/init
|
||||||
|
Loading…
Reference in New Issue
Block a user