gluon-config-mode: simplify dnsmasq command, remove sleep after network setup

This commit is contained in:
Matthias Schiffer 2014-02-13 16:27:40 +01:00
parent a33d64af06
commit f9c243b559
1 changed files with 2 additions and 4 deletions

View File

@ -51,8 +51,6 @@ setup_network() {
include /lib/network
setup_switch
sleep 5
}
start() {
@ -74,13 +72,13 @@ start() {
/usr/sbin/uhttpd -h /lib/gluon/config-mode/www -x /cgi-bin -A 1 -R -p 0.0.0.0:80
/usr/sbin/dnsmasq -p 0 -F $CONFIG_MODE_DHCP_RANGE -l /tmp/dhcp.leases -O option:router
/etc/init.d/led start
# correctly finish firstboot
/etc/init.d/done boot
dnsmasq -h -R -F interface:br-config,$CONFIG_MODE_DHCP_RANGE -l /tmp/dhcp.leases -O option:router
. /etc/diag.sh
get_status_led
status_led_set_timer 1000 300