diff options
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 12 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 52 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 57 |
3 files changed, 32 insertions, 89 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index a2ecc0fc69..d044ec7bcc 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -192,12 +192,12 @@ glinet,gl-mt300n|\ glinet,gl-mt750) set_wifi_led "$boardname:wlan" ;; -gl-mt300n-v2) +glinet,gl-mt300n-v2) set_wifi_led "$boardname:red:wlan" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1" ;; hiwifi,hc5661|\ -hc5661a) +hiwifi,hc5661a) ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2" set_wifi_led "$boardname:blue:wlan2g" ;; @@ -232,7 +232,7 @@ lava,lr-25g001) ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1" ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0" ;; -linkits7688) +mediatek,linkit-smart-7688) ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt" ;; m2m) @@ -313,12 +313,12 @@ tama,w06) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt" ;; -tl-wr840n-v4) +tplink,tl-wr840n-v4) ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" ;; -tl-wr841n-v13) +tplink,tl-wr841n-v13) ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2" ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4" @@ -374,7 +374,7 @@ kimax,u25awf-h1) set_wifi_led "u25awf:red:wifi" ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0" ;; -u7628-01-128M-16M) +unielec,u7628-01-128m-16m) ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2" ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4" ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8" diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index ee2ce3c1fb..94cc9e0ccd 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -57,14 +57,14 @@ ramips_setup_interfaces() edimax,ew-7478ac|\ ht-tm02|\ kimax,u35wf|\ - linkits7688 | \ + mediatek,linkit-smart-7688|\ m2m|\ microduino,microwrt|\ mikrotik,rbm11g|\ mpr-a2|\ ncs601w|\ - omega2 | \ - omega2p | \ + onion,omega2|\ + onion,omega2p|\ thunder,timecloud|\ tplink,tl-wa801nd-v5|\ w150m|\ @@ -99,17 +99,17 @@ ramips_setup_interfaces() dlink,dwr-922-e2|\ afoundry,ew1200|\ firefly,firewrt|\ - hc5661a|\ + hiwifi,hc5661a|\ hiwifi,hc5962|\ hlk-rm04|\ phicomm,k2p|\ kn|\ zyxel,keenetic-omni|\ - mac1200rv2|\ + mercury,mac1200r-v2|\ xiaomi,miwifi-mini|\ - miwifi-nano|\ + xiaomi,miwifi-nano|\ mediatek,mt7621-eval-board|\ - mt7628|\ + mediatek,mt7628an-eval-board|\ mtc,wr1201|\ planex,mzk-750dhp|\ mzk-w300nh2|\ @@ -168,7 +168,7 @@ ramips_setup_interfaces() planex,mzk-ex300np|\ planex,mzk-ex750np|\ sercomm,na930|\ - pbr-d1|\ + d-team,pbr-d1|\ ravpower,wd03|\ tama,w06|\ tplink,tl-mr3020-v3|\ @@ -243,17 +243,17 @@ ramips_setup_interfaces() tplink,archer-c50-v4|\ tplink,tl-mr3420-v5|\ tplink,tl-wr842n-v5|\ - tl-wr840n-v4|\ - tl-wr840n-v5|\ - tl-wr841n-v13|\ + tplink,tl-wr840n-v4|\ + tplink,tl-wr840n-v5|\ + tplink,tl-wr841n-v13|\ tplink,tl-wr841n-v14|\ - u7628-01-128M-16M|\ + unielec,u7628-01-128m-16m|\ ubiquiti,edgerouterx|\ ubiquiti,edgerouterx-sfp|\ ur-326n4g|\ wrtnode,wrtnode|\ - wrtnode2p | \ - wrtnode2r | \ + wrtnode,wrtnode2p|\ + wrtnode,wrtnode2r|\ youhua,wr1200js|\ zbtlink,zbt-wa05|\ zyxel,keenetic-extra-ii) @@ -280,7 +280,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "4:lan" "6@eth0" ;; - gl-mt300n-v2) + glinet,gl-mt300n-v2) ucidef_add_switch "switch0" \ "1:lan" "0:wan" "6@eth0" ;; @@ -314,7 +314,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "9@eth0" ;; - duzun-dm06) + duzun,dm06) ucidef_add_switch "switch0" \ "1:lan" "0:wan" "6@eth0" ;; @@ -419,8 +419,8 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "4:wan" "6@eth0" ;; - vocore2|\ - vocore2lite) + vocore,vocore2|\ + vocore,vocore2-lite) ucidef_add_switch "switch0" \ "0:lan" "2:lan" "6t@eth0" ;; @@ -432,7 +432,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0" ;; - wcr-1166ds) + buffalo,wcr-1166ds) ucidef_add_switch "switch0" \ "3:lan" "4:wan" "6@eth0" ;; @@ -570,14 +570,14 @@ ramips_setup_macs() samknows,whitebox-v8) wan_mac=$(mtd_get_mac_binary factory 57350) ;; - gl-mt300n-v2|\ + glinet,gl-mt300n-v2|\ whr-g300n) wan_mac=$(mtd_get_mac_binary factory 4) ;; hiwifi,hc5661|\ hiwifi,hc5761|\ hiwifi,hc5861|\ - hc5661a|\ + hiwifi,hc5661a|\ hiwifi,hc5962|\ hiwifi,hc5861b) lan_mac=`mtd_get_mac_ascii bdinfo "Vfac_mac "` @@ -597,11 +597,11 @@ ramips_setup_macs() zyxel,keenetic-viva) wan_mac=$(mtd_get_mac_binary factory 40) ;; - linkits7688) + mediatek,linkit-smart-7688) wan_mac=$(mtd_get_mac_binary factory 4) lan_mac=$(mtd_get_mac_binary factory 46) ;; - mac1200rv2) + mercury,mac1200r-v2) lan_mac=$(mtd_get_mac_binary factory_info 13) wan_mac=$(macaddr_add "$lan_mac" 1) ;; @@ -621,8 +621,8 @@ ramips_setup_macs() lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(macaddr_add "$lan_mac" 2) ;; - omega2|\ - omega2p) + onion,omega2|\ + onion,omega2p) wan_mac=$(mtd_get_mac_binary factory 4) lan_mac=$(mtd_get_mac_binary factory 46) ;; @@ -664,7 +664,7 @@ ramips_setup_macs() lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 5) ;; - wcr-1166ds|\ + buffalo,wcr-1166ds|\ buffalo,wsr-1166dhp) local index="$(find_mtd_index "board_data")" wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 2ad92fd26b..013412b589 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -121,9 +121,6 @@ ramips_board_detect() { *"DIR-645") name="dir-645" ;; - *"DuZun DM06") - name="duzun-dm06" - ;; *"DWR-512 B") name="dwr-512-b" ;; @@ -145,12 +142,6 @@ ramips_board_detect() { *"FreeStation5") name="freestation5" ;; - *"GL-MT300N-V2") - name="gl-mt300n-v2" - ;; - *"HC5661A") - name="hc5661a" - ;; *"HG255D") name="hg255d" ;; @@ -187,24 +178,15 @@ ramips_board_detect() { *"M4 (8M)") name="m4-8M" ;; - *"MediaTek LinkIt Smart 7688") - name="linkits7688" - ;; *"Memory 2 Move") name="m2m" ;; - *"Mercury MAC1200R v2") - name="mac1200rv2" - ;; *"MiniEMBPlug") name="miniembplug" ;; *"MiniEMBWiFi") name="miniembwifi" ;; - *"MiWiFi Nano") - name="miwifi-nano" - ;; *"MOFI3500-3GN") name="mofi3500-3gn" ;; @@ -217,9 +199,6 @@ ramips_board_detect() { *"MR-102N") name="mr-102n" ;; - *"MT7628AN evaluation"*) - name="mt7628" - ;; *"MT7688 evaluation"*) name="mt7688" ;; @@ -250,15 +229,6 @@ ramips_board_detect() { *"NW718") name="nw718" ;; - *"Onion Omega2") - name="omega2" - ;; - *"Onion Omega2+") - name="omega2p" - ;; - *"PBR-D1") - name="pbr-d1" - ;; *"PSR-680W"*) name="psr-680w" ;; @@ -313,18 +283,6 @@ ramips_board_detect() { *"TEW-714TRU") name="tew-714tru" ;; - *"TL-WR840N v4") - name="tl-wr840n-v4" - ;; - *"TL-WR840N v5") - name="tl-wr840n-v5" - ;; - *"TL-WR841N v13") - name="tl-wr841n-v13" - ;; - *"U7628-01 (128M RAM/16M flash)") - name="u7628-01-128M-16M" - ;; *"UR-326N4G") name="ur-326n4g" ;; @@ -343,12 +301,6 @@ ramips_board_detect() { *"VoCore (16M)") name="vocore-16M" ;; - *"VoCore2") - name="vocore2" - ;; - *"VoCore2-Lite") - name="vocore2lite" - ;; *"W150M") name="w150m" ;; @@ -358,9 +310,6 @@ ramips_board_detect() { *"W502U") name="w502u" ;; - *"WCR-1166DS") - name="wcr-1166ds" - ;; *"WCR-150GN") name="wcr-150gn" ;; @@ -403,12 +352,6 @@ ramips_board_detect() { *"WR6202") name="wr6202" ;; - *"WRTnode2R") - name="wrtnode2r" - ;; - *"WRTnode2P") - name="wrtnode2p" - ;; *"WT1520 (4M)") name="wt1520-4M" ;; |