mvebu: add switch config for clearfog pro
Check for switch0 existance and add default switch config if found. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
parent
6859098d97
commit
27ed4e9c14
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ armada-xp-gp)
|
||||||
;;
|
;;
|
||||||
armada-388-clearfog)
|
armada-388-clearfog)
|
||||||
ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
|
ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
|
||||||
|
swconfig list 2>&1 | grep -q switch0 && \
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"0:lan:5" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5@eth0" "6:lan:6"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
ucidef_set_interface_lan "eth0"
|
ucidef_set_interface_lan "eth0"
|
||||||
|
|
Loading…
Reference in a new issue