init-ifupdown: don't bring wlan1 up automatically
Tests have shown that having this interface up hinders wlan0's performance, so don't bring it up by default. https://jira.digi.com/browse/DEL-6353 Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
24de2e5302
commit
26df169ea2
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
auto wlan1
|
#auto wlan1
|
||||||
iface wlan1 inet dhcp
|
iface wlan1 inet dhcp
|
||||||
udhcpc_opts -S -b >/dev/null &
|
udhcpc_opts -S -b >/dev/null &
|
||||||
post-up ##WLAN1_POST_UP_ACTION##
|
post-up ##WLAN1_POST_UP_ACTION##
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
auto wlan1
|
#auto wlan1
|
||||||
iface wlan1 inet static
|
iface wlan1 inet static
|
||||||
address ##WLAN1_STATIC_IP##
|
address ##WLAN1_STATIC_IP##
|
||||||
netmask ##WLAN1_STATIC_NETMASK##
|
netmask ##WLAN1_STATIC_NETMASK##
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ WLAN1_PRE_DOWN_ACTION = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'sys
|
||||||
install_wlan1() {
|
install_wlan1() {
|
||||||
if [ -n "${HAVE_WIFI}" ]; then
|
if [ -n "${HAVE_WIFI}" ]; then
|
||||||
cat ${WORKDIR}/interfaces.wlan1.${WLAN1_MODE} >> ${D}${sysconfdir}/network/interfaces
|
cat ${WORKDIR}/interfaces.wlan1.${WLAN1_MODE} >> ${D}${sysconfdir}/network/interfaces
|
||||||
|
[ -n "${WLAN1_AUTO}" ] && sed -i -e 's/^#auto wlan1/auto wlan1/g' ${D}${sysconfdir}/network/interfaces
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove config entries if corresponding variable is not defined
|
# Remove config entries if corresponding variable is not defined
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue