Skip to content

Commit

Permalink
base-files: bring up vlan interface too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
luizluca authored and hauke committed Jun 22, 2021
1 parent b7ee078 commit fe6b9b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/base-files/files/lib/preinit/10_indicate_preinit
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fe6b9b0

Please sign in to comment.