diff options
author | Luiz Angelo Daros de Luca <luizluca@gmail.com> | 2021-06-22 00:45:22 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-06-22 23:23:00 +0200 |
commit | fe6b9b0588a47e0a6aabc6a51aa676e7e7204174 (patch) | |
tree | 5a8b49ac8f7b1c8db7cfbaec47f7cb6cc92bfeae /package | |
parent | b7ee0786b56d1088c195fe7c1cdb1ad7d20c9245 (diff) | |
download | upstream-fe6b9b0588a47e0a6aabc6a51aa676e7e7204174.tar.gz upstream-fe6b9b0588a47e0a6aabc6a51aa676e7e7204174.tar.bz2 upstream-fe6b9b0588a47e0a6aabc6a51aa676e7e7204174.zip |
base-files: bring up vlan interface too
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@gmail.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/base-files/files/lib/preinit/10_indicate_preinit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit index deb5f2ae3a..debb3d4480 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 } |