ipq40xx: merge duplicated cases in base-files

Merge some identical cases in base-files.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20518
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Christoph Krapp 2025-10-23 19:07:20 +02:00 committed by Robert Marko
parent f53bbd54f8
commit 26d2485f54
2 changed files with 5 additions and 14 deletions

View File

@ -71,9 +71,7 @@ ipq40xx_setup_interfaces()
ucidef_set_interface_lan "lan1 lan2 lan3 lan4" ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
;; ;;
avm,fritzrepeater-3000|\ avm,fritzrepeater-3000|\
cellc,rtl30vw) cellc,rtl30vw|\
ucidef_set_interface_lan "lan1 lan2"
;;
compex,wpj428) compex,wpj428)
ucidef_set_interface_lan "lan1 lan2" ucidef_set_interface_lan "lan1 lan2"
;; ;;
@ -175,7 +173,8 @@ ipq40xx_setup_macs()
local label_mac="" local label_mac=""
case "$board" in case "$board" in
8dev,habanero-dvk) 8dev,habanero-dvk|\
cilab,meshpoint-one)
label_mac=$(mtd_get_mac_binary "ART" 0x1006) label_mac=$(mtd_get_mac_binary "ART" 0x1006)
;; ;;
asus,rt-ac42u) asus,rt-ac42u)
@ -185,9 +184,6 @@ ipq40xx_setup_macs()
local tffsdev=$(find_mtd_chardev "nand-tffs") local tffsdev=$(find_mtd_chardev "nand-tffs")
wan_mac=$(/usr/bin/fritz_tffs_nand -b -d $tffsdev -n macdsl) wan_mac=$(/usr/bin/fritz_tffs_nand -b -d $tffsdev -n macdsl)
;; ;;
cilab,meshpoint-one)
label_mac=$(mtd_get_mac_binary "ART" 0x1006)
;;
devolo,magic-2-wifi-next) devolo,magic-2-wifi-next)
lan_mac=$(mtd_get_mac_ascii APPSBLENV MacAddress0) lan_mac=$(mtd_get_mac_ascii APPSBLENV MacAddress0)
label_mac=$lan_mac label_mac=$lan_mac

View File

@ -113,6 +113,7 @@ platform_do_upgrade() {
avm,fritzrepeater-3000|\ avm,fritzrepeater-3000|\
buffalo,wtr-m2133hp|\ buffalo,wtr-m2133hp|\
cilab,meshpoint-one|\ cilab,meshpoint-one|\
compex,wpj419|\
edgecore,ecw5211|\ edgecore,ecw5211|\
edgecore,oap100|\ edgecore,oap100|\
engenius,eap2200|\ engenius,eap2200|\
@ -145,10 +146,7 @@ platform_do_upgrade() {
fi fi
nand_do_upgrade "$1" nand_do_upgrade "$1"
;; ;;
asus,map-ac2200) asus,map-ac2200|\
CI_KERNPART="linux"
nand_do_upgrade "$1"
;;
asus,rt-ac42u|\ asus,rt-ac42u|\
asus,rt-ac58u) asus,rt-ac58u)
CI_KERNPART="linux" CI_KERNPART="linux"
@ -158,9 +156,6 @@ platform_do_upgrade() {
CI_UBIPART="ubifs" CI_UBIPART="ubifs"
askey_do_upgrade "$1" askey_do_upgrade "$1"
;; ;;
compex,wpj419)
nand_do_upgrade "$1"
;;
google,wifi) google,wifi)
export_bootdevice export_bootdevice
export_partdevice CI_ROOTDEV 0 export_partdevice CI_ROOTDEV 0