orion: convert initial network configuration to board.d
[openwrt/svn-archive/archive.git] / target / linux / orion / base-files / etc / board.d / 02_network
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults-new.sh
4
5 board_config_update
6
7 if grep -q lan1 /proc/net/dev; then
8 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
9 else
10 ucidef_set_interface_lan "eth0"
11 fi
12
13 board_config_flush
14
15 exit 0