ramips: fix HiWiFi HC5962 switch configuration

HC5962 has only 3 LAN ports, switch port 0 is unused

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
(backported from commit 68f49df315)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
DENG Qingfang 2020-01-17 00:24:43 +08:00 committed by Adrian Schmutzler
parent 5c7225c26b
commit 3a3ca3230f

View File

@ -88,7 +88,6 @@ ramips_setup_interfaces()
ew1200|\ ew1200|\
firewrt|\ firewrt|\
hc5661a|\ hc5661a|\
hc5962|\
hlk-rm04|\ hlk-rm04|\
k2p|\ k2p|\
kn|\ kn|\
@ -285,6 +284,10 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
;; ;;
hc5962)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
;;
kn_rf) kn_rf)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0" "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"