meta-digi-arm: launch udhcp client in background to reduce the boot time

udhcpc options added to 'network/interfaces':
 * '-S' to log to syslog too.
 * Redirect the output to '/dev/null' not to show messages of the tool running
   in background (for example when executing 'ifup').
 * '&' to send the udhcp client to background.

https://jira.digi.com/browse/DEL-3821

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
This commit is contained in:
Tatiana Leon 2017-03-16 14:23:34 +01:00
parent 30c253e108
commit 113deb8046
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
auto wlan0 auto wlan0
iface wlan0 inet dhcp iface wlan0 inet dhcp
udhcpc_opts -b udhcpc_opts -S -b >/dev/null &
wpa-driver ##WPA_DRIVER## wpa-driver ##WPA_DRIVER##
wpa-conf /etc/wpa_supplicant.conf wpa-conf /etc/wpa_supplicant.conf
post-up /bin/virtwlans.sh post-up /bin/virtwlans.sh

View File

@ -1,6 +1,6 @@
auto wlan1 auto wlan1
iface wlan1 inet dhcp iface wlan1 inet dhcp
udhcpc_opts -b udhcpc_opts -S -b >/dev/null &
post-up /etc/init.d/hostapd start post-up /etc/init.d/hostapd start
pre-down /etc/init.d/hostapd stop pre-down /etc/init.d/hostapd stop

View File

@ -1,4 +1,4 @@
auto eth0 auto eth0
iface eth0 inet dhcp iface eth0 inet dhcp
udhcpc_opts -b udhcpc_opts -S -b >/dev/null &

View File

@ -1,4 +1,4 @@
auto eth1 auto eth1
iface eth1 inet dhcp iface eth1 inet dhcp
udhcpc_opts -b udhcpc_opts -S -b >/dev/null &

View File

@ -1,7 +1,7 @@
auto wlan0 auto wlan0
iface wlan0 inet dhcp iface wlan0 inet dhcp
udhcpc_opts -b udhcpc_opts -S -b >/dev/null &
wpa-driver ##WPA_DRIVER## wpa-driver ##WPA_DRIVER##
wpa-conf /etc/wpa_supplicant.conf wpa-conf /etc/wpa_supplicant.conf
# post-up /etc/init.d/hostapd start # post-up /etc/init.d/hostapd start