summaryrefslogtreecommitdiff
path: root/target/linux/orion/base-files/etc/board.d/02_network
blob: ab74bf371325f2c015d6614076535bc7bd10917f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

. /lib/functions/uci-defaults.sh

board_config_update

if grep -q lan1 /proc/net/dev; then
	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
else
	ucidef_set_interface_lan "eth0"
fi

board_config_flush

exit 0