01_leds 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/ar71xx.sh
  7. board_config_update
  8. board=$(ar71xx_board_name)
  9. case "$board" in
  10. a40)
  11. ucidef_set_led_default "status-red" "Status (red)" "a40:red:status" "0"
  12. ucidef_set_led_default "status-blue" "Status (blue)" "a40:blue:status" "0"
  13. ;;
  14. a60)
  15. ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
  16. ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
  17. ;;
  18. airgateway|\
  19. airgatewaypro)
  20. ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
  21. ;;
  22. alfa-nx)
  23. ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
  24. ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
  25. ;;
  26. all0258n|\
  27. all0315n)
  28. ucidef_set_rssimon "wlan0" "200000" "1"
  29. ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:red:rssilow" "wlan0" "1" "40" "0" "6"
  30. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
  31. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssihigh" "wlan0" "70" "100" "-69" "8"
  32. ;;
  33. antminer-s1|\
  34. antminer-s3)
  35. ucidef_set_led_default "sys" "SYS" "$board:green:sys" "0"
  36. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  37. case "$board" in
  38. antminer-s3)
  39. ucidef_set_led_default "lan" "LAN" "$board:yellow:lan" "0"
  40. ;;
  41. esac
  42. ;;
  43. antrouter-r1)
  44. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  45. ucidef_set_led_default "btc" "BTC" "$board:green:btc" "0"
  46. ;;
  47. ap121f)
  48. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  49. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  50. ;;
  51. arduino-yun)
  52. ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
  53. ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
  54. ;;
  55. db120)
  56. ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
  57. ;;
  58. ap147-010)
  59. ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
  60. ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
  61. ucidef_set_led_switch "lan2" "LAN2" "ap147:green:lan2" "switch0" "0x08"
  62. ucidef_set_led_switch "lan3" "LAN3" "ap147:green:lan3" "switch0" "0x04"
  63. ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
  64. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
  65. ;;
  66. ap90q|\
  67. cpe830|\
  68. cpe870|\
  69. dr531)
  70. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  71. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
  72. case "$board" in
  73. ap90q)
  74. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  75. ;;
  76. cpe830|\
  77. cpe870)
  78. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  79. ucidef_set_rssimon "wlan0" "200000" "1"
  80. ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:link1" "wlan0" "1" "100" "0" "13"
  81. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:link2" "wlan0" "26" "100" "-25" "13"
  82. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:link3" "wlan0" "51" "100" "-50" "13"
  83. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:link4" "wlan0" "76" "100" "-75" "13"
  84. ;;
  85. esac
  86. ;;
  87. bhr-4grv2)
  88. ucidef_set_led_default "power" "POWER" "buffalo:green:power" "1"
  89. ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
  90. ;;
  91. bsb)
  92. ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
  93. ;;
  94. bullet-m|\
  95. nanostation-m|\
  96. rocket-m|\
  97. rocket-m-xw|\
  98. nanostation-m-xw|\
  99. loco-m-xw)
  100. ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
  101. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
  102. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
  103. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
  104. ;;
  105. rocket-m-ti)
  106. ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
  107. ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
  108. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
  109. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
  110. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
  111. ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
  112. ;;
  113. bxu2000n-2-a1)
  114. ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
  115. ;;
  116. cap324)
  117. ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
  118. ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
  119. ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
  120. ;;
  121. c-55)
  122. ucidef_set_led_netdev "lan_green" "LAN_GREEN" "$board:green:lan" "eth0"
  123. ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "$board:amber:wlan" "phy0tpt"
  124. ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "$board:green:wlan" "phy1tpt"
  125. ;;
  126. c-60)
  127. ucidef_set_led_wlan "wlan1_green" "WLAN1_GREEN" "$board:green:wlan1" "phy0tpt"
  128. ucidef_set_led_wlan "wlan2_green" "WLAN2_GREEN" "$board:green:wlan2" "phy1tpt"
  129. ;;
  130. cap4200ag)
  131. ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
  132. ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
  133. ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
  134. ;;
  135. carambola2)
  136. ucidef_set_led_netdev "lan" "LAN" "$board:orange:eth0" "eth0"
  137. ucidef_set_led_netdev "wan" "WAN" "$board:orange:eth1" "eth1"
  138. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  139. ;;
  140. cf-e316n-v2)
  141. ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
  142. ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
  143. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  144. ;;
  145. cf-e320n-v2)
  146. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  147. ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
  148. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  149. ;;
  150. cf-e380ac-v1|\
  151. cf-e380ac-v2)
  152. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  153. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
  154. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt"
  155. ;;
  156. cf-e520n|\
  157. cf-e530n)
  158. ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
  159. ;;
  160. cpe210|\
  161. cpe510|\
  162. wbs210|\
  163. wbs510)
  164. ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
  165. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
  166. ucidef_set_rssimon "wlan0" "200000" "1"
  167. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
  168. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
  169. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
  170. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
  171. ;;
  172. cr3000)
  173. ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
  174. ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
  175. ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
  176. ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
  177. ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
  178. ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
  179. ;;
  180. cr5000)
  181. ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
  182. ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
  183. ;;
  184. dr344)
  185. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  186. ;;
  187. dragino2)
  188. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  189. ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0"
  190. ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
  191. ;;
  192. dw33d)
  193. ucidef_set_led_usbdev "mmc" "MMC" "$board:blue:mmc" "1-1"
  194. ucidef_set_led_usbdev "usb" "USB" "$board:blue:usb" "2-1"
  195. ucidef_set_led_netdev "internet" "INTERNET" "$board:blue:internet" "eth0"
  196. ucidef_set_led_wlan "wlan2g" "WLAN-2.4G" "$board:blue:wlan-2g" "phy1tpt"
  197. ;;
  198. eap300v2)
  199. ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
  200. ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
  201. ;;
  202. f9k1115v2)
  203. ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
  204. ;;
  205. rb-750)
  206. ucidef_set_led_default "act" "act" "rb750:green:act" "1"
  207. ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
  208. ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
  209. ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
  210. ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
  211. ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
  212. ;;
  213. rb-941-2nd)
  214. ucidef_set_led_timer "act" "act" "rb:green:act" "1000" "1000"
  215. ;;
  216. rb-2011l|\
  217. rb-2011uas|\
  218. rb-2011uias|\
  219. rb-2011uas-2hnd|\
  220. rb-2011uias-2hnd)
  221. ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
  222. ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
  223. ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
  224. ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
  225. ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
  226. ;;
  227. dap-2695-a1)
  228. ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
  229. ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
  230. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:green:wlan2g" "phy1tpt"
  231. ;;
  232. dhp-1565-a1)
  233. ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
  234. ;;
  235. dir-600-a1|\
  236. dir-615-e1|\
  237. dir-615-e4)
  238. ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
  239. ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
  240. ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
  241. ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
  242. ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
  243. ;;
  244. dir-615-c1)
  245. ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
  246. ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
  247. ;;
  248. dir-825-b1|\
  249. dir-825-c1)
  250. ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
  251. case "$board" in
  252. dir-825-c1)
  253. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
  254. ;;
  255. esac
  256. ;;
  257. dir-615-i1)
  258. ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
  259. ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
  260. ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
  261. ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
  262. ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
  263. ;;
  264. dlan-hotspot)
  265. ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
  266. ;;
  267. dlan-pro-500-wp)
  268. ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
  269. ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
  270. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
  271. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
  272. ;;
  273. dlan-pro-1200-ac)
  274. ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
  275. ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
  276. ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
  277. ;;
  278. gl-ar150|\
  279. gl-usb150|\
  280. gl-ar300|\
  281. gl-ar300m|\
  282. gl-mifi)
  283. ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
  284. case "$board" in
  285. gl-mifi)
  286. ucidef_set_led_netdev "wan" "WAN" "$board:wan" "eth0"
  287. ucidef_set_led_netdev "lan" "LAN" "$board:lan" "eth1"
  288. ucidef_set_led_netdev "3gnet" "3GNET" "$board:net" "3g-wan"
  289. ;;
  290. esac
  291. ;;
  292. gl-domino|\
  293. wrt160nl)
  294. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  295. ;;
  296. gl-inet)
  297. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  298. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  299. ;;
  300. esr900)
  301. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
  302. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
  303. ;;
  304. esr1750|\
  305. epg5000)
  306. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
  307. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
  308. ;;
  309. hiwifi-hc6361)
  310. ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
  311. ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
  312. ;;
  313. hornet-ub|\
  314. hornet-ub-x2)
  315. ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
  316. ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
  317. ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
  318. ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
  319. ;;
  320. mc-mac1200r)
  321. ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
  322. ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
  323. ;;
  324. mr12|\
  325. mr16)
  326. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  327. ucidef_set_led_wlan "wlan1" "WLAN1" "$board:green:wifi1" "phy0assoc"
  328. ucidef_set_led_wlan "wlan2" "WLAN2" "$board:green:wifi2" "phy0assoc"
  329. ucidef_set_led_wlan "wlan3" "WLAN3" "$board:green:wifi3" "phy0assoc"
  330. ucidef_set_led_wlan "wlan4" "WLAN4" "$board:green:wifi4" "phy0tpt"
  331. ;;
  332. mr18)
  333. ucidef_set_led_netdev "wlan0" "WLAN0" "$board:blue:tricolor0" "wlan0"
  334. ;;
  335. mr600)
  336. ucidef_set_led_wlan "wlan58" "WLAN58" "$board:green:wlan58" "phy0tpt"
  337. ucidef_set_led_default "wps" "WPS" "mr600:blue:wps" "0"
  338. ;;
  339. mr600v2)
  340. ucidef_set_led_default "wlan24-red" "WLAN 2.4GHz (red)" "mr600:red:wlan24" "0"
  341. ucidef_set_led_default "wlan24-yellow" "WLAN 2.4GHz (yellow)" "mr600:yellow:wlan24" "0"
  342. ucidef_set_led_wlan "wlan24-green" "WLAN 4GHz (green)" "mr600:green:wlan24" "phy1tpt"
  343. ucidef_set_led_default "wlan5-red" "WLAN 5GHz (red)" "mr600:red:wlan58" "0"
  344. ucidef_set_led_default "wlan5-yellow" "WLAN 5GHz (yellow)" "mr600:yellow:wlan58" "0"
  345. ucidef_set_led_wlan "wlan5-green" "WLAN 5GHz (green)" "mr600:green:wlan58" "phy0tpt"
  346. ;;
  347. mr1750|\
  348. mr1750v2)
  349. ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
  350. ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
  351. ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
  352. ucidef_set_led_default "status-red" "Status (red)" "mr1750:red:wifi" "0"
  353. ucidef_set_led_default "status-green" "Status (green)" "mr1750:green:wifi" "0"
  354. ;;
  355. mr900|\
  356. mr900v2)
  357. ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
  358. ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
  359. ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
  360. ucidef_set_led_default "status-red" "Status (red)" "mr900:red:wifi" "0"
  361. ucidef_set_led_default "status-green" "Status (green)" "mr900:green:wifi" "0"
  362. ;;
  363. mynet-n600)
  364. ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
  365. ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
  366. ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
  367. ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
  368. ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
  369. ;;
  370. mynet-rext)
  371. ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
  372. ucidef_set_rssimon "wlan0" "200000" "1"
  373. ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
  374. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
  375. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
  376. ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
  377. ;;
  378. mzk-w04u)
  379. ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
  380. ;;
  381. mzk-w300nh)
  382. ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
  383. ;;
  384. nbg460n_550n_550nh)
  385. ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
  386. ;;
  387. nbg6616)
  388. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wifi2g" "phy1tpt"
  389. ucidef_set_led_wlan "wlan5" "WLAN5" "$board:green:wifi5g" "phy0tpt"
  390. ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
  391. ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
  392. ;;
  393. nbg6716)
  394. ucidef_set_led_netdev "wan" "WAN" "$board:white:internet" "eth1"
  395. ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wifi2g" "phy1tpt"
  396. ucidef_set_led_wlan "wlan5" "WLAN5" "$board:white:wifi5g" "phy0tpt"
  397. ucidef_set_led_usbdev "usb1" "USB1" "$board:white:usb1" "1-1"
  398. ucidef_set_led_usbdev "usb2" "USB2" "$board:white:usb2" "2-1"
  399. ;;
  400. om2p|\
  401. om2pv2|\
  402. om2pv4|\
  403. om2p-hs|\
  404. om2p-hsv2|\
  405. om2p-hsv3|\
  406. om2p-hsv4|\
  407. om2p-lc)
  408. ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
  409. ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
  410. ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
  411. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om2p:yellow:wifi" "0"
  412. ucidef_set_led_default "wlan-green" "WLAN (green)" "om2p:green:wifi" "0"
  413. ;;
  414. om5p|\
  415. om5p-an)
  416. ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
  417. ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
  418. ucidef_set_led_default "wlan-red" "WLAN (red)" "om5p:red:wifi" "0"
  419. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5p:yellow:wifi" "0"
  420. ucidef_set_led_default "wlan-green" "WLAN (green)" "om5p:green:wifi" "0"
  421. ;;
  422. om5p-ac)
  423. ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
  424. ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
  425. ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
  426. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
  427. ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
  428. ;;
  429. om5p-acv2)
  430. ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
  431. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
  432. ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
  433. ;;
  434. omy-g1)
  435. ucidef_set_led_wlan "wlan" "WLAN" "omy:green:wlan" "phy0tpt"
  436. ucidef_set_led_netdev "wan" "WAN" "omy:green:wan" "eth0"
  437. ucidef_set_led_netdev "lan" "LAN" "omy:green:lan" "eth1"
  438. ;;
  439. omy-x1)
  440. ucidef_set_led_default "power" "POWER" "omy:green:power" "1"
  441. ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0"
  442. ;;
  443. qihoo-c301)
  444. ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
  445. ;;
  446. re450)
  447. ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
  448. ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
  449. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
  450. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
  451. ;;
  452. smart-300)
  453. ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
  454. ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
  455. ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
  456. ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
  457. ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
  458. ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
  459. ;;
  460. som9331)
  461. ucidef_set_led_netdev "wan" "WAN" "$board:orange:wan" "eth1"
  462. ucidef_set_led_switch "lan1" "LAN1" "$board:orange:lan1" "switch0" "0x08"
  463. ucidef_set_led_switch "lan2" "LAN2" "$board:orange:lan2" "switch0" "0x02"
  464. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  465. ucidef_set_led_usbdev "usb" "USB" "$board:green:system" "1-1"
  466. ;;
  467. sr3200)
  468. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
  469. ;;
  470. tellstick-znet-lite)
  471. ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx"
  472. ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link"
  473. ;;
  474. tew-712br)
  475. ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
  476. ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
  477. ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
  478. ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
  479. ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
  480. ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
  481. ;;
  482. tew-732br)
  483. ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
  484. ;;
  485. tew-823dru)
  486. ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
  487. ;;
  488. tl-mr11u|\
  489. tl-mr3020|\
  490. tl-mr3040|\
  491. tl-mr3040-v2)
  492. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  493. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  494. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  495. ;;
  496. tl-mr3220|\
  497. tl-mr3420)
  498. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  499. ;;
  500. tl-mr3220-v2|\
  501. tl-wr741nd-v4)
  502. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  503. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
  504. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  505. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
  506. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  507. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  508. case "$board" in
  509. tl-mr3220-v2)
  510. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  511. ;;
  512. esac
  513. ;;
  514. tl-mr3420-v2|\
  515. tl-wr841n-v8|\
  516. tl-wr842n-v2|\
  517. tl-wr941nd-v5)
  518. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
  519. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
  520. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  521. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
  522. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  523. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  524. case "$board" in
  525. tl-wr842n-v2|\
  526. tl-mr3420-v2)
  527. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  528. ;;
  529. esac
  530. ;;
  531. tl-wa7210n-v2)
  532. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  533. ucidef_set_rssimon "wlan0" "200000" "1"
  534. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
  535. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
  536. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
  537. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
  538. ;;
  539. tl-wa750re)
  540. ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
  541. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
  542. ucidef_set_rssimon "wlan0" "200000" "1"
  543. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
  544. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
  545. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
  546. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
  547. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
  548. ;;
  549. tl-wa801nd-v3)
  550. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
  551. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  552. ;;
  553. tl-wa850re)
  554. ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
  555. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
  556. ucidef_set_rssimon "wlan0" "200000" "1"
  557. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
  558. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
  559. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
  560. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
  561. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
  562. ;;
  563. tl-wa701nd-v2|\
  564. tl-wa860re|\
  565. tl-wa830re-v2|\
  566. tl-wa801nd-v2|\
  567. tl-wa901nd-v3|\
  568. tl-wa901nd-v4)
  569. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  570. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  571. ;;
  572. tl-wa901nd)
  573. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  574. ;;
  575. tl-wa901nd-v2|\
  576. tl-wr941nd|\
  577. tl-wr1041n-v2)
  578. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  579. ;;
  580. tl-wdr3320-v2)
  581. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
  582. ;;
  583. tl-wdr3500)
  584. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
  585. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
  586. ;;
  587. tl-wdr4300)
  588. ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
  589. ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
  590. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
  591. ;;
  592. tl-wdr4900-v2)
  593. ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
  594. ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
  595. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
  596. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
  597. ;;
  598. tl-wdr6500-v2|\
  599. tl-wr741nd)
  600. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  601. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
  602. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
  603. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
  604. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
  605. ;;
  606. archer-c5|\
  607. archer-c7)
  608. ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
  609. ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
  610. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
  611. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
  612. ;;
  613. tl-wpa8630)
  614. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  615. ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
  616. ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
  617. ;;
  618. tl-wr802n-v1)
  619. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
  620. ;;
  621. tl-wr940n-v4|\
  622. tl-wr941nd-v6)
  623. ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
  624. ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
  625. ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
  626. ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
  627. ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
  628. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
  629. ;;
  630. tl-wr841n-v9|\
  631. tl-wr841n-v11|\
  632. tl-wr842n-v3)
  633. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  634. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
  635. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  636. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
  637. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  638. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  639. case "$board" in
  640. tl-wr842n-v3)
  641. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  642. ;;
  643. esac
  644. ;;
  645. tl-wr1043nd|\
  646. tl-wr1043nd-v2)
  647. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
  648. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  649. ;;
  650. tl-wr1043nd-v4)
  651. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
  652. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  653. ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
  654. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
  655. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  656. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
  657. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  658. ;;
  659. tl-wr2543n)
  660. ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
  661. ;;
  662. tpe-r1100|\
  663. tube2h)
  664. ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
  665. ucidef_set_rssimon "wlan0" "200000" "1"
  666. ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
  667. ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
  668. ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
  669. ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
  670. ;;
  671. wndap360)
  672. ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
  673. ;;
  674. wndr3700)
  675. ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
  676. ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
  677. ;;
  678. r6100)
  679. ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
  680. ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
  681. ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
  682. ;;
  683. wndr3700v4|\
  684. wndr4300)
  685. ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
  686. ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
  687. ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
  688. ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
  689. ;;
  690. whr-g301n|\
  691. whr-hp-g300n|\
  692. whr-hp-gn)
  693. ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
  694. ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
  695. ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
  696. ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
  697. ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
  698. ;;
  699. wlae-ag300n)
  700. ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
  701. ;;
  702. wnr1000-v2|\
  703. wnr2000-v3)
  704. ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
  705. ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
  706. ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
  707. ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
  708. ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
  709. ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
  710. ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
  711. ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
  712. ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
  713. ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
  714. ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
  715. ;;
  716. wnr2000-v4)
  717. ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
  718. ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
  719. ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
  720. ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
  721. ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
  722. ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
  723. ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
  724. ;;
  725. wnr2200)
  726. ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
  727. ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
  728. ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
  729. ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
  730. ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
  731. ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
  732. ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
  733. ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
  734. ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
  735. ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
  736. ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
  737. ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
  738. ;;
  739. wnr612-v2)
  740. ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
  741. ucidef_set_led_netdev "wlan" "WLAN" "netgear:green:wlan" "wlan0"
  742. ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
  743. ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
  744. ;;
  745. wpn824n)
  746. ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
  747. ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
  748. ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
  749. ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
  750. ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
  751. ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
  752. ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
  753. ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
  754. ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
  755. ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
  756. ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
  757. ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
  758. ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
  759. ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
  760. ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
  761. ;;
  762. wzr-hp-ag300h)
  763. ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
  764. ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
  765. ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
  766. ;;
  767. wzr-hp-g300nh)
  768. ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
  769. ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
  770. ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
  771. ;;
  772. xd3200)
  773. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
  774. ;;
  775. z1)
  776. ucidef_set_led_netdev "wlan1" "WLAN1" "$board:blue:tricolor0" "wlan1"
  777. ;;
  778. zbt-we1526)
  779. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
  780. ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
  781. ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
  782. ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
  783. ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
  784. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  785. ;;
  786. zcn-1523h-2)
  787. ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
  788. ;;
  789. zcn-1523h-5)
  790. ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
  791. ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
  792. ;;
  793. esac
  794. board_config_flush
  795. exit 0