[PATCH v2 5/5] base-files: bring up vlan interface too
Hauke Mehrtens
hauke at hauke-m.de
Mon Jun 21 15:45:22 PDT 2021
From: Luiz Angelo Daros de Luca <luizluca at gmail.com>
Vlan subinterface was never brought up when using vlan-based preinit network.
Tested forcing ifname="" before preinit_ip() on a Tp-Link Archer C5v4.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca at gmail.com>
---
package/base-files/files/lib/preinit/10_indicate_preinit | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index deb5f2ae3a25..debb3d448083 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -18,6 +18,9 @@ preinit_ip_config() {
fi
ip link set dev $netdev up
+ if [ -n "$vid" ]; then
+ ip link set dev $1 up
+ fi
ip -4 address add $pi_ip/$pi_netmask broadcast $pi_broadcast dev $1
}
--
2.30.2
More information about the openwrt-devel
mailing list