mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00: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/openwrt@2830 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ae353e0bf7
commit
d6a73d30bd
@ -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…
x
Reference in New Issue
Block a user