OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh |
2 | # |
||
3 | # Copyright (C) 2012-2015 OpenWrt.org |
||
4 | # |
||
5 | |||
6 | . /lib/functions/uci-defaults.sh |
||
7 | . /lib/functions/system.sh |
||
8 | |||
9 | board_config_update |
||
10 | |||
11 | board=$(board_name) |
||
12 | |||
13 | case "$board" in |
||
14 | "cisco,on100") |
||
15 | ucidef_set_interface_lan "eth0 eth1" |
||
16 | ;; |
||
17 | "cloudengines,pogoe02"|\ |
||
18 | "cloudengines,pogoplugv4"|\ |
||
19 | "iom,iconnect-1.1"|\ |
||
20 | "raidsonic,ib-nas62x0"|\ |
||
21 | "seagate,dockstar"|\ |
||
22 | "seagate,goflexhome"|\ |
||
23 | "seagate,goflexnet") |
||
24 | ucidef_set_interface_lan "eth0" "dhcp" |
||
25 | ;; |
||
26 | "linksys,audi"|\ |
||
27 | "linksys,viper") |
||
28 | ucidef_add_switch "switch0" \ |
||
29 | "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1" |
||
30 | ;; |
||
31 | "zyxel,nsa310b"|\ |
||
32 | "zyxel,nsa325") |
||
33 | ucidef_set_interface_lan "eth0" "dhcp" |
||
34 | ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr ) |
||
35 | ;; |
||
36 | *) |
||
37 | ucidef_set_interface_lan "eth0" |
||
38 | ;; |
||
39 | esac |
||
40 | |||
41 | board_config_flush |
||
42 | |||
43 | exit 0 |