mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
bcm4908: add board.d network setup
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
81240a9b89
commit
f06c3031a7
26
target/linux/bcm4908/base-files/etc/board.d/02_network
Executable file
26
target/linux/bcm4908/base-files/etc/board.d/02_network
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
|
||||||
|
|
||||||
|
. /lib/functions/system.sh
|
||||||
|
. /lib/functions/uci-defaults.sh
|
||||||
|
|
||||||
|
bcm4908_setup_interfaces()
|
||||||
|
{
|
||||||
|
local board="$1"
|
||||||
|
|
||||||
|
case "$board" in
|
||||||
|
asus,gt-ac5300)
|
||||||
|
ucidef_set_interface_lan "lan1 lan2 lan5 lan6 sw"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
board=$(board_name)
|
||||||
|
bcm4908_setup_interfaces "$board"
|
||||||
|
board_config_flush
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user