mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
ramips: Remove redundant LED-cases
01_leds has several redundant LED-cases. This commit cleans up the file by merging these cases into shared cases. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
This commit is contained in:
parent
fde0abf267
commit
86b6d31e6e
@ -13,30 +13,29 @@ boardname="${board##*,}"
|
|||||||
board_config_update
|
board_config_update
|
||||||
|
|
||||||
case $board in
|
case $board in
|
||||||
3g-6200n)
|
3g-6200n|\
|
||||||
set_wifi_led "$boardname:amber:wlan"
|
|
||||||
;;
|
|
||||||
3g-6200nl|\
|
|
||||||
hilink,hlk-7628n|\
|
|
||||||
skylab,skw92a|\
|
|
||||||
wnce2001)
|
|
||||||
set_wifi_led "$boardname:green:wlan"
|
|
||||||
;;
|
|
||||||
br-6475nd|\
|
br-6475nd|\
|
||||||
mzk-w300nh2)
|
mzk-w300nh2)
|
||||||
set_wifi_led "$boardname:amber:wlan"
|
set_wifi_led "$boardname:amber:wlan"
|
||||||
;;
|
;;
|
||||||
|
3g-6200nl|\
|
||||||
|
air3gii|\
|
||||||
|
hilink,hlk-7628n|\
|
||||||
|
mr-102n|\
|
||||||
|
skylab,skw92a|\
|
||||||
|
wnce2001|\
|
||||||
|
zbt-we2026)
|
||||||
|
set_wifi_led "$boardname:green:wlan"
|
||||||
|
;;
|
||||||
ai-br100)
|
ai-br100)
|
||||||
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2"
|
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2"
|
||||||
set_wifi_led "$boardname:blue:wlan"
|
set_wifi_led "$boardname:blue:wlan"
|
||||||
;;
|
;;
|
||||||
air3gii)
|
|
||||||
set_wifi_led "$boardname:green:wlan"
|
|
||||||
;;
|
|
||||||
alfa-network,ac1200rm)
|
alfa-network,ac1200rm)
|
||||||
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
||||||
;;
|
;;
|
||||||
alfa-network,awusfree1)
|
alfa-network,awusfree1|\
|
||||||
|
edimax,br-6478ac-v2)
|
||||||
set_wifi_led "$boardname:blue:wlan"
|
set_wifi_led "$boardname:blue:wlan"
|
||||||
;;
|
;;
|
||||||
alfa-network,tube-e4g)
|
alfa-network,tube-e4g)
|
||||||
@ -96,37 +95,47 @@ cudy,wr1000)
|
|||||||
ucidef_set_led_switch "lan1" "lan1" "$boardname:blue:lan1" "switch0" "0x08"
|
ucidef_set_led_switch "lan1" "lan1" "$boardname:blue:lan1" "switch0" "0x08"
|
||||||
ucidef_set_led_switch "lan2" "lan2" "$boardname:blue:lan2" "switch0" "0x04"
|
ucidef_set_led_switch "lan2" "lan2" "$boardname:blue:lan2" "switch0" "0x04"
|
||||||
;;
|
;;
|
||||||
d240)
|
d240|\
|
||||||
|
mlw221|\
|
||||||
|
mlwg2|\
|
||||||
|
rakwireless,rak633|\
|
||||||
|
rt-ac51u)
|
||||||
set_wifi_led "$boardname:blue:wifi"
|
set_wifi_led "$boardname:blue:wifi"
|
||||||
;;
|
;;
|
||||||
dcs-930l-b1)
|
dcs-930l-b1)
|
||||||
ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
|
ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
|
||||||
;;
|
;;
|
||||||
dir-300-b1|\
|
dir-300-b1|\
|
||||||
dir-600-b1|\
|
|
||||||
dir-620-a1)
|
|
||||||
set_wifi_led "rt2800pci-phy0::radio"
|
|
||||||
;;
|
|
||||||
dir-300-b7|\
|
dir-300-b7|\
|
||||||
dir-320-b1|\
|
dir-320-b1|\
|
||||||
|
dir-600-b1|\
|
||||||
dir-610-a1|\
|
dir-610-a1|\
|
||||||
|
dir-615-d|\
|
||||||
|
dir-615-h1|\
|
||||||
|
dir-620-a1|\
|
||||||
esr-9753|\
|
esr-9753|\
|
||||||
hlk-rm04|\
|
hlk-rm04|\
|
||||||
|
kn|\
|
||||||
|
nbg-419n2|\
|
||||||
sl-r7205|\
|
sl-r7205|\
|
||||||
v11st-fe|\
|
v11st-fe|\
|
||||||
w306r-v20|\
|
w306r-v20|\
|
||||||
|
w502u|\
|
||||||
wt1520-4M|\
|
wt1520-4M|\
|
||||||
wt1520-8M)
|
wt1520-8M|\
|
||||||
set_wifi_led "rt2800pci-phy0::radio"
|
zyxel,keenetic-start)
|
||||||
;;
|
|
||||||
dir-615-d|\
|
|
||||||
dir-615-h1)
|
|
||||||
set_wifi_led "rt2800pci-phy0::radio"
|
set_wifi_led "rt2800pci-phy0::radio"
|
||||||
;;
|
;;
|
||||||
dir-620-d1|\
|
dir-620-d1|\
|
||||||
dlink,dwr-116-a1|\
|
dlink,dwr-116-a1|\
|
||||||
head-weblink,hdrm200|\
|
head-weblink,hdrm200|\
|
||||||
mzk-ex300np)
|
kn_rc|\
|
||||||
|
kn_rf|\
|
||||||
|
kng_rc|\
|
||||||
|
mzk-ex300np|\
|
||||||
|
oy-0001|\
|
||||||
|
tew-714tru|\
|
||||||
|
zbt-wr8305rt)
|
||||||
set_wifi_led "$boardname:green:wifi"
|
set_wifi_led "$boardname:green:wifi"
|
||||||
;;
|
;;
|
||||||
dlink,dwr-118-a1)
|
dlink,dwr-118-a1)
|
||||||
@ -149,9 +158,6 @@ dlink,dwr-922-e2)
|
|||||||
dir-860l-b1)
|
dir-860l-b1)
|
||||||
ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
|
ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
|
||||||
;;
|
;;
|
||||||
edimax,br-6478ac-v2)
|
|
||||||
set_wifi_led "$boardname:blue:wlan"
|
|
||||||
;;
|
|
||||||
ex2700|\
|
ex2700|\
|
||||||
wn3000rpv3)
|
wn3000rpv3)
|
||||||
set_wifi_led "$boardname:green:router"
|
set_wifi_led "$boardname:green:router"
|
||||||
@ -163,7 +169,8 @@ ex3700)
|
|||||||
f5d8235-v1)
|
f5d8235-v1)
|
||||||
set_wifi_led "$boardname:blue:wireless"
|
set_wifi_led "$boardname:blue:wireless"
|
||||||
;;
|
;;
|
||||||
fonera20n)
|
fonera20n|\
|
||||||
|
tiny-ac)
|
||||||
set_wifi_led "$boardname:orange:wifi"
|
set_wifi_led "$boardname:orange:wifi"
|
||||||
;;
|
;;
|
||||||
gnubee,gb-pc1|\
|
gnubee,gb-pc1|\
|
||||||
@ -212,15 +219,6 @@ kimax,u35wf)
|
|||||||
set_wifi_led "$boardname:blue:wifi"
|
set_wifi_led "$boardname:blue:wifi"
|
||||||
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
|
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
|
||||||
;;
|
;;
|
||||||
kn|\
|
|
||||||
nbg-419n2)
|
|
||||||
set_wifi_led "rt2800pci-phy0::radio"
|
|
||||||
;;
|
|
||||||
kn_rc|\
|
|
||||||
kn_rf|\
|
|
||||||
kng_rc)
|
|
||||||
set_wifi_led "$boardname:green:wifi"
|
|
||||||
;;
|
|
||||||
lava,lr-25g001)
|
lava,lr-25g001)
|
||||||
ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1"
|
ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1"
|
||||||
ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0"
|
ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0"
|
||||||
@ -243,13 +241,6 @@ mikrotik,rbm11g)
|
|||||||
miniembplug)
|
miniembplug)
|
||||||
set_wifi_led "$boardname:red:wlan"
|
set_wifi_led "$boardname:red:wlan"
|
||||||
;;
|
;;
|
||||||
mlw221|\
|
|
||||||
mlwg2)
|
|
||||||
set_wifi_led "$boardname:blue:wifi"
|
|
||||||
;;
|
|
||||||
mr-102n)
|
|
||||||
set_wifi_led "$boardname:green:wlan"
|
|
||||||
;;
|
|
||||||
mr200)
|
mr200)
|
||||||
ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
|
ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
|
||||||
ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0"
|
ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0"
|
||||||
@ -267,9 +258,6 @@ netgear,r6120)
|
|||||||
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
||||||
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
|
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
|
||||||
;;
|
;;
|
||||||
oy-0001)
|
|
||||||
set_wifi_led "$boardname:green:wifi"
|
|
||||||
;;
|
|
||||||
gehua,ghl-r-001|\
|
gehua,ghl-r-001|\
|
||||||
pbr-m1)
|
pbr-m1)
|
||||||
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
|
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
|
||||||
@ -292,9 +280,6 @@ wndr3700v5)
|
|||||||
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
||||||
set_wifi_led "$boardname:green:wifi"
|
set_wifi_led "$boardname:green:wifi"
|
||||||
;;
|
;;
|
||||||
rakwireless,rak633)
|
|
||||||
set_wifi_led "$boardname:blue:wifi"
|
|
||||||
;;
|
|
||||||
re350-v1)
|
re350-v1)
|
||||||
ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
|
ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
|
||||||
ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
|
ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
|
||||||
@ -305,9 +290,6 @@ rp-n53)
|
|||||||
ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
|
ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
|
||||||
set_wifi_led "$boardname:blue:wifi"
|
set_wifi_led "$boardname:blue:wifi"
|
||||||
;;
|
;;
|
||||||
rt-ac51u)
|
|
||||||
set_wifi_led "$boardname:blue:wifi"
|
|
||||||
;;
|
|
||||||
rt-n12p)
|
rt-n12p)
|
||||||
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
|
||||||
ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
|
ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
|
||||||
@ -322,12 +304,6 @@ tama,w06)
|
|||||||
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
||||||
ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
|
ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
|
||||||
;;
|
;;
|
||||||
tew-714tru)
|
|
||||||
set_wifi_led "$boardname:green:wifi"
|
|
||||||
;;
|
|
||||||
tiny-ac)
|
|
||||||
set_wifi_led "$boardname:orange:wifi"
|
|
||||||
;;
|
|
||||||
tl-wr840n-v4)
|
tl-wr840n-v4)
|
||||||
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
|
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 "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
||||||
@ -397,9 +373,6 @@ vocore-8M|\
|
|||||||
vocore-16M)
|
vocore-16M)
|
||||||
ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
|
ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
|
||||||
;;
|
;;
|
||||||
w502u)
|
|
||||||
set_wifi_led "rt2800pci-phy0::radio"
|
|
||||||
;;
|
|
||||||
wavlink,wl-wn570ha1)
|
wavlink,wl-wn570ha1)
|
||||||
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
||||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||||
@ -457,9 +430,6 @@ zbt-ape522ii)
|
|||||||
zbt-wa05)
|
zbt-wa05)
|
||||||
set_wifi_led "$boardname:blue:air"
|
set_wifi_led "$boardname:blue:air"
|
||||||
;;
|
;;
|
||||||
zbt-we2026)
|
|
||||||
set_wifi_led "$boardname:green:wlan"
|
|
||||||
;;
|
|
||||||
zbt-we826-16M|\
|
zbt-we826-16M|\
|
||||||
zbt-we826-32M)
|
zbt-we826-32M)
|
||||||
set_wifi_led "zbt-we826:green:wifi"
|
set_wifi_led "zbt-we826:green:wifi"
|
||||||
@ -470,9 +440,6 @@ zbtlink,zbt-we1226)
|
|||||||
ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
|
ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
|
||||||
ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
|
ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
|
||||||
;;
|
;;
|
||||||
zbt-wr8305rt)
|
|
||||||
set_wifi_led "$boardname:green:wifi"
|
|
||||||
;;
|
|
||||||
zorlik,zl5900v2)
|
zorlik,zl5900v2)
|
||||||
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
|
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
|
||||||
;;
|
;;
|
||||||
@ -480,9 +447,6 @@ zyxel,keenetic-extra-ii)
|
|||||||
set_wifi_led "$boardname:green:wifi"
|
set_wifi_led "$boardname:green:wifi"
|
||||||
ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
|
ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
|
||||||
;;
|
;;
|
||||||
zyxel,keenetic-start)
|
|
||||||
set_wifi_led "rt2800pci-phy0::radio"
|
|
||||||
;;
|
|
||||||
youku-yk1)
|
youku-yk1)
|
||||||
set_wifi_led "$boardname:blue:air"
|
set_wifi_led "$boardname:blue:air"
|
||||||
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
|
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user