realtek: remove rtl83xx vlan 1 special cases
[openwrt/staging/dedeckeh.git] / target / linux / realtek / base-files / lib / preinit / 05_set_preinit_iface_realtek
1 set_preinit_iface() {
2
3 # Create a switch on lan1 to configure the VLAN 1.
4 # Without configuring VLAN ID 1 RTL8380 - RTL9300 will not
5 # forward packets.
6 ip link add name switch type bridge vlan_filtering 1
7 ip link set dev lan1 master switch
8 ip link set lan1 up
9
10 pi_ifname=switch
11 }
12
13 boot_hook_add preinit_main set_preinit_iface