1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-26 06:24:03 +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:
nbd 2006-01-04 23:50:17 +00:00
parent 81ec17e004
commit 4bb342946e
2 changed files with 5 additions and 5 deletions

View File

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

View File

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