01_leds 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. board_config_update
  7. board=$(board_name)
  8. case "$board" in
  9. a40)
  10. ucidef_set_led_default "status-red" "Status (red)" "a40:red:status" "0"
  11. ucidef_set_led_default "status-blue" "Status (blue)" "a40:blue:status" "0"
  12. ;;
  13. a60)
  14. ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
  15. ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
  16. ;;
  17. airgateway|\
  18. airgatewaypro)
  19. ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
  20. ;;
  21. alfa-nx)
  22. ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
  23. ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
  24. ;;
  25. all0258n|\
  26. all0315n)
  27. ucidef_set_rssimon "wlan0" "200000" "1"
  28. ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:red:rssilow" "wlan0" "1" "40" "0" "6"
  29. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
  30. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssihigh" "wlan0" "70" "100" "-69" "8"
  31. ;;
  32. antminer-s1|\
  33. antminer-s3)
  34. ucidef_set_led_default "sys" "SYS" "$board:green:sys" "0"
  35. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  36. case "$board" in
  37. antminer-s3)
  38. ucidef_set_led_default "lan" "LAN" "$board:yellow:lan" "0"
  39. ;;
  40. esac
  41. ;;
  42. antrouter-r1)
  43. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  44. ucidef_set_led_default "btc" "BTC" "$board:green:btc" "0"
  45. ;;
  46. ap121f)
  47. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  48. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  49. ;;
  50. ap147-010)
  51. ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
  52. ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
  53. ucidef_set_led_switch "lan2" "LAN2" "ap147:green:lan2" "switch0" "0x08"
  54. ucidef_set_led_switch "lan3" "LAN3" "ap147:green:lan3" "switch0" "0x04"
  55. ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
  56. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
  57. ;;
  58. ap90q|\
  59. cpe505n|\
  60. cpe830|\
  61. cpe870|\
  62. dr531|\
  63. e600g-v2|\
  64. e600gac-v2|\
  65. e750a-v4)
  66. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  67. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
  68. case "$board" in
  69. ap90q)
  70. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  71. ;;
  72. cpe505n)
  73. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  74. ;;
  75. cpe830|\
  76. cpe870)
  77. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  78. ucidef_set_rssimon "wlan0" "200000" "1"
  79. ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:link1" "wlan0" "1" "100" "0" "13"
  80. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:link2" "wlan0" "26" "100" "-25" "13"
  81. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:link3" "wlan0" "51" "100" "-50" "13"
  82. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:link4" "wlan0" "76" "100" "-75" "13"
  83. ;;
  84. esac
  85. ;;
  86. ap531b0|\
  87. gl-usb150|\
  88. sc1750|\
  89. sc450)
  90. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  91. ;;
  92. ap91-5g|\
  93. n5q)
  94. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  95. ucidef_set_rssimon "wlan0" "200000" "1"
  96. ucidef_set_led_rssi "signal1" "SIGNAL1" "$board:red:signal1" "wlan0" "1" "100"
  97. ucidef_set_led_rssi "signal2" "SIGNAL2" "$board:orange:signal2" "wlan0" "25" "100"
  98. ucidef_set_led_rssi "signal3" "SIGNAL3" "$board:green:signal3" "wlan0" "50" "100"
  99. ucidef_set_led_rssi "signal4" "SIGNAL4" "$board:green:signal4" "wlan0" "75" "100"
  100. case "$board" in
  101. n5q)
  102. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
  103. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  104. ;;
  105. esac
  106. ;;
  107. archer-c25-v1)
  108. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  109. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
  110. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
  111. ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
  112. ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
  113. ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
  114. ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
  115. ;;
  116. archer-c5|\
  117. archer-c7)
  118. ucidef_set_led_usbport "usb1" "USB1" "tp-link:green:usb1" "usb1-port1"
  119. ucidef_set_led_usbport "usb2" "USB2" "tp-link:green:usb2" "usb2-port1"
  120. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy1tpt"
  121. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
  122. ;;
  123. archer-c58-v1|\
  124. archer-c59-v1|\
  125. archer-c59-v2|\
  126. archer-c60-v1|\
  127. archer-c60-v2)
  128. ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x1E"
  129. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  130. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
  131. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
  132. case "$board" in
  133. archer-c59-v1|\
  134. archer-c59-v2)
  135. ucidef_set_led_usbport "usb" "USB" "$board:green:usb" "usb1-port1"
  136. ;;
  137. esac
  138. ;;
  139. archer-c7-v4|\
  140. archer-c7-v5)
  141. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
  142. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
  143. ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02"
  144. ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan4" "switch0" "0x04"
  145. ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan3" "switch0" "0x08"
  146. ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan2" "switch0" "0x10"
  147. ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan1" "switch0" "0x20"
  148. case "$board" in
  149. archer-c7-v4)
  150. ucidef_set_led_usbport "usb1" "USB1" "$board:green:usb1" "usb1-port1"
  151. ucidef_set_led_usbport "usb2" "USB2" "$board:green:usb2" "usb2-port1"
  152. ;;
  153. esac
  154. case "$board" in
  155. archer-c7-v5)
  156. ucidef_set_led_usbport "usb" "USB" "$board:green:usb" "usb1-port1"
  157. ;;
  158. esac
  159. ;;
  160. arduino-yun)
  161. ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
  162. ucidef_set_led_usbport "usb" "USB" "arduino:white:usb" "1-1-port1"
  163. ;;
  164. bhr-4grv2)
  165. ucidef_set_led_default "power" "POWER" "buffalo:green:power" "1"
  166. ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
  167. ;;
  168. bsb)
  169. ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
  170. ;;
  171. bullet-m|\
  172. bullet-m-xw|\
  173. loco-m-xw|\
  174. nanostation-m|\
  175. nanostation-m-xw|\
  176. rocket-m|\
  177. rocket-m-xw)
  178. ucidef_set_rssimon "wlan0" "200000" "1"
  179. ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100"
  180. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100"
  181. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100"
  182. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100"
  183. ;;
  184. bxu2000n-2-a1)
  185. ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
  186. ;;
  187. cap324)
  188. ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
  189. ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
  190. ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
  191. ;;
  192. c-55)
  193. ucidef_set_led_netdev "lan_green" "LAN_GREEN" "$board:green:lan" "eth0"
  194. ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "$board:amber:wlan" "phy0tpt"
  195. ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "$board:green:wlan" "phy1tpt"
  196. ;;
  197. c-60)
  198. ucidef_set_led_wlan "wlan1_green" "WLAN1_GREEN" "$board:green:wlan1" "phy0tpt"
  199. ucidef_set_led_wlan "wlan2_green" "WLAN2_GREEN" "$board:green:wlan2" "phy1tpt"
  200. ;;
  201. cap4200ag)
  202. ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
  203. ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
  204. ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
  205. ;;
  206. carambola2)
  207. ucidef_set_led_netdev "lan" "LAN" "$board:orange:eth0" "eth0"
  208. ucidef_set_led_netdev "wan" "WAN" "$board:orange:eth1" "eth1"
  209. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  210. ;;
  211. cf-e316n-v2)
  212. ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
  213. ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
  214. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  215. ;;
  216. cf-e320n-v2)
  217. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  218. ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
  219. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  220. ;;
  221. cf-e355ac-v1|\
  222. cf-e355ac-v2|\
  223. cf-e375ac|\
  224. cf-e380ac-v1|\
  225. cf-e380ac-v2|\
  226. cf-e385ac)
  227. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
  228. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt"
  229. case "$board" in
  230. cf-e375ac|\
  231. cf-e385ac)
  232. ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x04"
  233. ;;
  234. *)
  235. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  236. ;;
  237. esac
  238. ;;
  239. cf-e520n|\
  240. cf-e530n)
  241. ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
  242. ;;
  243. cpe210|\
  244. cpe210-v2|\
  245. cpe210-v3|\
  246. cpe510|\
  247. cpe510-v2|\
  248. wbs210|\
  249. wbs510)
  250. ucidef_set_rssimon "wlan0" "200000" "1"
  251. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
  252. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
  253. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
  254. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
  255. case "$board" in
  256. cpe210-v2|\
  257. cpe210-v3|\
  258. cpe510-v2)
  259. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan0" "eth0"
  260. ;;
  261. *)
  262. ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
  263. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
  264. ;;
  265. esac
  266. ;;
  267. cr3000)
  268. ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
  269. ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
  270. ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
  271. ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
  272. ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
  273. ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
  274. ;;
  275. cr5000)
  276. ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
  277. ucidef_set_led_usbport "usb" "USB" "pcs:white:wps" "usb1-port1"
  278. ;;
  279. db120)
  280. ucidef_set_led_usbport "usb" "USB" "$board:green:usb" "usb1-port1"
  281. ;;
  282. dr344)
  283. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  284. ;;
  285. dragino2)
  286. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  287. ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0"
  288. ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
  289. ;;
  290. dw33d)
  291. ucidef_set_led_usbport "mmc" "MMC" "$board:blue:mmc" "usb1-port1"
  292. ucidef_set_led_usbport "usb" "USB" "$board:blue:usb" "usb2-port1"
  293. ucidef_set_led_netdev "internet" "INTERNET" "$board:blue:internet" "eth0"
  294. ucidef_set_led_wlan "wlan2g" "WLAN-2.4G" "$board:blue:wlan-2g" "phy1tpt"
  295. ;;
  296. eap300v2)
  297. ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
  298. ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
  299. ;;
  300. ens202ext)
  301. ucidef_set_rssimon "wlan0" "200000" "1"
  302. ucidef_set_led_rssi "rssilow" "RSSILOW" "engenius:amber:wlan1" "wlan0" "1" "100" "0" "13"
  303. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "engenius:red:wlan2" "wlan0" "25" "100" "-39" "13"
  304. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "engenius:amber:wlan3" "wlan0" "50" "100" "-59" "13"
  305. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "engenius:green:wlan4" "wlan0" "75" "100" "-79" "13"
  306. ;;
  307. f9k1115v2)
  308. ucidef_set_led_usbport "usb2" "USB2" "belkin:green:usb2" "usb1-port1"
  309. ;;
  310. fritz300e)
  311. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  312. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  313. ucidef_set_rssimon "wlan0" "200000" "1"
  314. ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:rssi0" "wlan0" "1" "100"
  315. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:rssi1" "wlan0" "20" "100"
  316. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:green:rssi2" "wlan0" "40" "100"
  317. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:rssi3" "wlan0" "60" "100"
  318. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssi4" "wlan0" "80" "100"
  319. ;;
  320. dap-1330-a1)
  321. ucidef_set_rssimon "wlan0" "2000000" "2"
  322. ucidef_set_led_rssi "wifi-low" "wifi-low" "d-link:red:wifi" "wlan0" "1" "29"
  323. ucidef_set_led_rssi "wifi-medium" "wifi-medium" "d-link:green:wifi" "wlan0" "30" "100"
  324. ucidef_set_led_rssi "wifi-high" "wifi-high" "d-link:green:signal1" "wlan0" "50" "100"
  325. ucidef_set_led_rssi "wifi-max" "wifi-max" "d-link:green:signal2" "wlan0" "70" "100"
  326. ;;
  327. dap-2695-a1)
  328. ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
  329. ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
  330. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:green:wlan2g" "phy1tpt"
  331. ;;
  332. dhp-1565-a1)
  333. ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
  334. ;;
  335. dir-600-a1|\
  336. dir-615-e1|\
  337. dir-615-e4|\
  338. ebr-2310-c1)
  339. ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
  340. ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
  341. ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
  342. ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
  343. ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
  344. ;;
  345. dir-615-c1)
  346. ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
  347. ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
  348. ;;
  349. dir-825-b1|\
  350. dir-825-c1)
  351. ucidef_set_led_usbport "usb" "USB" "d-link:blue:usb" "usb1-port1"
  352. case "$board" in
  353. dir-825-c1)
  354. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
  355. ;;
  356. esac
  357. ;;
  358. dir-615-i1)
  359. ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
  360. ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
  361. ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
  362. ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
  363. ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
  364. ;;
  365. dlan-hotspot)
  366. ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
  367. ;;
  368. dlan-pro-500-wp)
  369. ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
  370. ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
  371. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
  372. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
  373. ;;
  374. dlan-pro-1200-ac)
  375. ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
  376. ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
  377. ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
  378. ;;
  379. e1700ac-v2)
  380. ucidef_set_led_usbport "usb" "USB" "$board:green:usb" "usb1-port1"
  381. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
  382. ;;
  383. e558-v2|\
  384. e750g-v8)
  385. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  386. ;;
  387. esr900)
  388. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
  389. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
  390. ;;
  391. esr1750|\
  392. epg5000)
  393. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
  394. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
  395. ;;
  396. fritz4020)
  397. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  398. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  399. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  400. ;;
  401. fritz450e)
  402. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  403. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  404. ;;
  405. gl-ar300m)
  406. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  407. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  408. ;;
  409. gl-ar750)
  410. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy1tpt"
  411. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:white:wlan5g" "phy0tpt"
  412. ;;
  413. gl-ar750s)
  414. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
  415. ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
  416. ;;
  417. gl-mifi)
  418. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  419. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  420. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  421. ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
  422. ;;
  423. gl-ar150)
  424. ucidef_set_led_wlan "wlan" "WLAN" "$board:orange:wlan" "phy0tpt"
  425. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  426. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  427. ;;
  428. gl-ar300)
  429. ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
  430. ;;
  431. gl-domino|\
  432. sc300m|\
  433. wrt160nl)
  434. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  435. ;;
  436. gl-inet)
  437. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
  438. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  439. ;;
  440. hiwifi-hc6361)
  441. ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
  442. ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
  443. ;;
  444. hornet-ub|\
  445. hornet-ub-x2)
  446. ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
  447. ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
  448. ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
  449. ucidef_set_led_usbport "usb" "USB" "alfa:blue:usb" "usb1-port1"
  450. ;;
  451. koala)
  452. ucidef_set_led_default "power" "POWER" "$board:green:power" "1"
  453. ucidef_set_led_wlan "wlan2g" "WLAN 2.4GHz" "$board:yellow:wlan2" "phy1tpt"
  454. ucidef_set_led_wlan "wlan5g" "WLAN 5GHz" "$board:red:wlan58" "phy0tpt"
  455. ;;
  456. lan-turtle)
  457. ucidef_set_led_netdev "wan" "WAN" "$board:orange:system" "eth1"
  458. ;;
  459. lbe-m5)
  460. ucidef_set_led_netdev "lan" "LAN" "ubnt:green:lan" "eth0"
  461. ucidef_set_led_wlan "wlan" "WLAN" "ubnt:green:wlan" "phy0tpt"
  462. ;;
  463. mc-mac1200r)
  464. ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
  465. ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
  466. ;;
  467. mr12|\
  468. mr16)
  469. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  470. ucidef_set_led_wlan "wlan1" "WLAN1" "$board:green:wifi1" "phy0assoc"
  471. ucidef_set_led_wlan "wlan2" "WLAN2" "$board:green:wifi2" "phy0assoc"
  472. ucidef_set_led_wlan "wlan3" "WLAN3" "$board:green:wifi3" "phy0assoc"
  473. ucidef_set_led_wlan "wlan4" "WLAN4" "$board:green:wifi4" "phy0tpt"
  474. ;;
  475. mr18)
  476. ucidef_set_led_netdev "wlan0" "WLAN0" "$board:blue:tricolor0" "wlan0"
  477. ;;
  478. mr600)
  479. ucidef_set_led_wlan "wlan58" "WLAN58" "$board:green:wlan58" "phy0tpt"
  480. ucidef_set_led_default "wps" "WPS" "mr600:blue:wps" "0"
  481. ;;
  482. mr600v2)
  483. ucidef_set_led_default "wlan24-red" "WLAN 2.4GHz (red)" "mr600:red:wlan24" "0"
  484. ucidef_set_led_default "wlan24-yellow" "WLAN 2.4GHz (yellow)" "mr600:yellow:wlan24" "0"
  485. ucidef_set_led_wlan "wlan24-green" "WLAN 4GHz (green)" "mr600:green:wlan24" "phy1tpt"
  486. ucidef_set_led_default "wlan5-red" "WLAN 5GHz (red)" "mr600:red:wlan58" "0"
  487. ucidef_set_led_default "wlan5-yellow" "WLAN 5GHz (yellow)" "mr600:yellow:wlan58" "0"
  488. ucidef_set_led_wlan "wlan5-green" "WLAN 5GHz (green)" "mr600:green:wlan58" "phy0tpt"
  489. ;;
  490. mr1750|\
  491. mr1750v2)
  492. ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
  493. ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
  494. ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
  495. ucidef_set_led_default "status-red" "Status (red)" "mr1750:red:wifi" "0"
  496. ucidef_set_led_default "status-green" "Status (green)" "mr1750:green:wifi" "0"
  497. ;;
  498. mr900|\
  499. mr900v2)
  500. ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
  501. ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
  502. ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
  503. ucidef_set_led_default "status-red" "Status (red)" "mr900:red:wifi" "0"
  504. ucidef_set_led_default "status-green" "Status (green)" "mr900:green:wifi" "0"
  505. ;;
  506. mynet-n600)
  507. ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
  508. ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
  509. ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
  510. ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
  511. ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
  512. ;;
  513. mynet-rext)
  514. ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
  515. ucidef_set_rssimon "wlan0" "200000" "1"
  516. ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
  517. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
  518. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
  519. ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
  520. ;;
  521. mzk-w04u)
  522. ucidef_set_led_usbport "usb" "USB" "planex:green:usb" "usb1-port1"
  523. ;;
  524. mzk-w300nh)
  525. ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
  526. ;;
  527. nbg460n_550n_550nh)
  528. ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
  529. ;;
  530. nbg6616)
  531. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wifi2g" "phy1tpt"
  532. ucidef_set_led_wlan "wlan5" "WLAN5" "$board:green:wifi5g" "phy0tpt"
  533. ucidef_set_led_usbport "usb1" "USB1" "$board:green:usb1" "usb1-port1"
  534. ucidef_set_led_usbport "usb2" "USB2" "$board:green:usb2" "usb2-port1"
  535. ;;
  536. nbg6716)
  537. ucidef_set_led_netdev "wan" "WAN" "$board:white:internet" "eth1"
  538. ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wifi2g" "phy1tpt"
  539. ucidef_set_led_wlan "wlan5" "WLAN5" "$board:white:wifi5g" "phy0tpt"
  540. ucidef_set_led_usbport "usb1" "USB1" "$board:white:usb1" "usb1-port1"
  541. ucidef_set_led_usbport "usb2" "USB2" "$board:white:usb2" "usb2-port1"
  542. ;;
  543. om2p|\
  544. om2p-hs|\
  545. om2p-hsv2|\
  546. om2p-hsv3|\
  547. om2p-hsv4|\
  548. om2p-lc|\
  549. om2pv2|\
  550. om2pv4)
  551. ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
  552. ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
  553. ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
  554. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om2p:yellow:wifi" "0"
  555. ucidef_set_led_default "wlan-green" "WLAN (green)" "om2p:green:wifi" "0"
  556. ;;
  557. om5p|\
  558. om5p-an)
  559. ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
  560. ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
  561. ucidef_set_led_default "wlan-red" "WLAN (red)" "om5p:red:wifi" "0"
  562. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5p:yellow:wifi" "0"
  563. ucidef_set_led_default "wlan-green" "WLAN (green)" "om5p:green:wifi" "0"
  564. ;;
  565. om5p-ac)
  566. ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
  567. ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
  568. ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
  569. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
  570. ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
  571. ;;
  572. om5p-acv2)
  573. ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
  574. ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
  575. ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
  576. ;;
  577. omy-g1)
  578. ucidef_set_led_wlan "wlan" "WLAN" "omy:green:wlan" "phy0tpt"
  579. ucidef_set_led_netdev "wan" "WAN" "omy:green:wan" "eth0"
  580. ucidef_set_led_netdev "lan" "LAN" "omy:green:lan" "eth1"
  581. ;;
  582. omy-x1)
  583. ucidef_set_led_default "power" "POWER" "omy:green:power" "1"
  584. ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0"
  585. ;;
  586. pqi-air-pen)
  587. ucidef_set_led_wlan "wlan" "WLAN" "pqi-air-pen:blue:wlan" "phy0tpt"
  588. ucidef_set_led_default "wps" "WPS" "pqi-air-pen:blue:wps" "0"
  589. ;;
  590. qihoo-c301)
  591. ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
  592. ;;
  593. r36a)
  594. ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
  595. ucidef_set_led_usbport "usb" "USB" "$board:blue:usb" "usb1-port1"
  596. ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
  597. ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
  598. ;;
  599. r602n|\
  600. t830|\
  601. zbt-we1526)
  602. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
  603. ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
  604. ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
  605. ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
  606. ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
  607. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  608. case "$board" in
  609. t830)
  610. ucidef_set_led_usbport "usb" "USB" "$board:green:usb" "usb1-port1"
  611. ;;
  612. esac
  613. ;;
  614. r6100)
  615. ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
  616. ucidef_set_led_usbport "usb" "USB" "netgear:blue:usb" "usb1-port1"
  617. ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
  618. ;;
  619. rb-750)
  620. ucidef_set_led_default "act" "act" "rb750:green:act" "1"
  621. ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
  622. ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
  623. ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
  624. ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
  625. ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
  626. ;;
  627. rb-750-r2|\
  628. rb-750p-pbr2|\
  629. rb-750up-r2)
  630. ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
  631. ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
  632. ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
  633. ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
  634. ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
  635. ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
  636. ;;
  637. rb-911-2hn|\
  638. rb-911-5hn)
  639. ucidef_set_led_netdev "eth" "ETH" "rb:green:eth" "eth0"
  640. ;;
  641. rb-931-2nd|\
  642. rb-941-2nd)
  643. ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
  644. ;;
  645. rb-951ui-2nd|\
  646. rb-952ui-5ac2nd)
  647. ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
  648. ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
  649. ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
  650. ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
  651. ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
  652. ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
  653. ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
  654. ;;
  655. rb-962uigs-5hact2hnt)
  656. ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"
  657. ;;
  658. rb-2011il|\
  659. rb-2011ils|\
  660. rb-2011l|\
  661. rb-2011uas|\
  662. rb-2011uas-2hnd|\
  663. rb-2011uias|\
  664. rb-2011uias-2hnd|\
  665. rb-2011uias-2hnd-r2)
  666. ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
  667. ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
  668. ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
  669. ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
  670. ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
  671. ;;
  672. rb-lhg-5nd)
  673. ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
  674. ucidef_set_rssimon "wlan0" "200000" "1"
  675. ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
  676. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "rb:green:rssi1" "wlan0" "20" "100" "-19" "13"
  677. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "rb:green:rssi2" "wlan0" "40" "100" "-39" "13"
  678. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "rb:green:rssi3" "wlan0" "60" "100" "-59" "13"
  679. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "rb:green:rssi4" "wlan0" "80" "100" "-79" "13"
  680. ;;
  681. rb-map-2nd)
  682. ucidef_set_led_switch "eth1" "WAN" "rb:green:eth1" "switch0" "0x02"
  683. ucidef_set_led_switch "eth2" "LAN" "rb:green:eth2" "switch0" "0x04"
  684. ucidef_set_led_gpio "poe" "POE" "rb:red:poe_out" "14" "0"
  685. ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
  686. ;;
  687. rb-mapl-2nd)
  688. ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
  689. ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
  690. ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
  691. ;;
  692. rb-wap-2nd)
  693. ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
  694. ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
  695. ;;
  696. rb-wapr-2nd)
  697. ucidef_set_led_wlan "wlan" "WLAN" "rb:green:user" "phy0tpt"
  698. ;;
  699. re355|\
  700. re450)
  701. ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
  702. ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
  703. ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
  704. ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
  705. ;;
  706. rme-eg200)
  707. ucidef_set_led_netdev "wan" "WAN" "eg200:red:eth0" "eth0"
  708. ucidef_set_led_wlan "wlan" "WLAN" "eg200:red:wlan" "phy0tpt"
  709. ucidef_set_led_oneshot "modbus" "Modbus" "eg200:red:modbus" "100" "33"
  710. ucidef_set_led_default "etactica" "etactica" "eg200:red:etactica" "ignore"
  711. ;;
  712. rocket-m-ti)
  713. ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
  714. ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
  715. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
  716. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
  717. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
  718. ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
  719. ;;
  720. rut900)
  721. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
  722. ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
  723. ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
  724. ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
  725. ;;
  726. smart-300)
  727. ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
  728. ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
  729. ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
  730. ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
  731. ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
  732. ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
  733. ;;
  734. som9331)
  735. ucidef_set_led_netdev "wan" "WAN" "$board:orange:wan" "eth1"
  736. ucidef_set_led_switch "lan1" "LAN1" "$board:orange:lan1" "switch0" "0x08"
  737. ucidef_set_led_switch "lan2" "LAN2" "$board:orange:lan2" "switch0" "0x02"
  738. ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
  739. ucidef_set_led_usbport "usb" "USB" "$board:green:system" "usb1-port1"
  740. ;;
  741. sr3200)
  742. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
  743. ;;
  744. tellstick-znet-lite)
  745. ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx"
  746. ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link"
  747. ;;
  748. tew-712br)
  749. ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
  750. ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
  751. ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
  752. ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
  753. ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
  754. ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
  755. ;;
  756. tew-732br)
  757. ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
  758. ;;
  759. tew-823dru)
  760. ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
  761. ;;
  762. tl-mr11u|\
  763. tl-mr3020|\
  764. tl-mr3040|\
  765. tl-mr3040-v2)
  766. ucidef_set_led_usbport "usb" "USB" "tp-link:green:3g" "usb1-port1"
  767. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  768. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  769. ;;
  770. tl-mr3220|\
  771. tl-mr3420)
  772. ucidef_set_led_usbport "usb" "USB" "tp-link:green:3g" "usb1-port1"
  773. ;;
  774. tl-mr3220-v2|\
  775. tl-wr741nd-v4)
  776. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  777. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
  778. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  779. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
  780. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  781. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  782. case "$board" in
  783. tl-mr3220-v2)
  784. ucidef_set_led_usbport "usb" "USB" "tp-link:green:3g" "usb1-port1"
  785. ;;
  786. esac
  787. ;;
  788. tl-mr3420-v2|\
  789. tl-wr841n-v8|\
  790. tl-wr842n-v2|\
  791. tl-wr941nd-v5)
  792. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
  793. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
  794. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  795. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
  796. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  797. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  798. case "$board" in
  799. tl-mr3420-v2|\
  800. tl-wr842n-v2)
  801. ucidef_set_led_usbport "usb" "USB" "tp-link:green:3g" "usb1-port1"
  802. ;;
  803. esac
  804. ;;
  805. tl-mr6400)
  806. ucidef_set_led_netdev "lan" "LAN" "tp-link:white:lan" "eth0"
  807. ucidef_set_led_netdev "wan" "WAN" "tp-link:white:wan" "eth1"
  808. ucidef_set_led_netdev "4g" "4G" "tp-link:white:4g" "usb0"
  809. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:white:wlan" "phy0tpt"
  810. ;;
  811. tl-wa7210n-v2)
  812. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  813. ucidef_set_rssimon "wlan0" "200000" "1"
  814. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
  815. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
  816. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
  817. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
  818. ;;
  819. tl-wa750re)
  820. ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
  821. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
  822. ucidef_set_rssimon "wlan0" "200000" "1"
  823. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
  824. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
  825. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
  826. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
  827. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
  828. ;;
  829. tl-wa801nd-v3)
  830. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
  831. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  832. ;;
  833. tl-wa850re|\
  834. tl-wa850re-v2)
  835. ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
  836. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
  837. ucidef_set_rssimon "wlan0" "200000" "1"
  838. ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
  839. ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
  840. ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
  841. ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
  842. ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
  843. ;;
  844. tl-wa701nd-v2|\
  845. tl-wa801nd-v2|\
  846. tl-wa830re-v2|\
  847. tl-wa860re|\
  848. tl-wa901nd-v3|\
  849. tl-wa901nd-v4|\
  850. tl-wa901nd-v5)
  851. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  852. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  853. ;;
  854. tl-wa901nd)
  855. ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  856. ;;
  857. tl-wa901nd-v2|\
  858. tl-wr941nd|\
  859. tl-wr1041n-v2)
  860. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  861. ;;
  862. tl-wdr3320-v2)
  863. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
  864. ;;
  865. tl-wdr3500)
  866. ucidef_set_led_usbport "usb" "USB" "tp-link:green:usb" "usb1-port1"
  867. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
  868. ;;
  869. tl-wdr4300)
  870. ucidef_set_led_usbport "usb1" "USB1" "tp-link:green:usb1" "1-1-port1"
  871. ucidef_set_led_usbport "usb2" "USB2" "tp-link:green:usb2" "1-1-port2"
  872. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
  873. ;;
  874. tl-wdr4900-v2)
  875. ucidef_set_led_usbport "usb1" "USB1" "tp-link:green:usb1" "usb1-port1"
  876. ucidef_set_led_usbport "usb2" "USB2" "tp-link:green:usb2" "usb2-port1"
  877. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
  878. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
  879. ;;
  880. tl-wdr6500-v2|\
  881. tl-wr741nd)
  882. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  883. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
  884. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
  885. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
  886. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
  887. ;;
  888. tl-wpa8630)
  889. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  890. ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
  891. ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
  892. ;;
  893. tl-wr740n-v6|\
  894. tl-wr841n-v9|\
  895. tl-wr841n-v11|\
  896. tl-wr842n-v3)
  897. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  898. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
  899. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  900. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
  901. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  902. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  903. case "$board" in
  904. tl-wr842n-v3)
  905. ucidef_set_led_usbport "usb" "USB" "tp-link:green:3g" "usb1-port1"
  906. ;;
  907. esac
  908. ;;
  909. tl-wr802n-v1)
  910. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
  911. ;;
  912. tl-wr802n-v2)
  913. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
  914. ;;
  915. tl-wr902ac-v1)
  916. ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
  917. ucidef_set_led_usbport "usb" "USB" "$board:green:usb" "usb1-port1"
  918. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
  919. ;;
  920. tl-wr940n-v4|\
  921. tl-wr941nd-v6)
  922. ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
  923. ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
  924. ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
  925. ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
  926. ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
  927. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
  928. ;;
  929. tl-wr840n-v2|\
  930. tl-wr840n-v3)
  931. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  932. ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"
  933. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  934. ;;
  935. tl-wr940n-v6)
  936. ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
  937. ;;
  938. tl-wr942n-v1)
  939. ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x04"
  940. ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
  941. ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x10"
  942. ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
  943. ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
  944. ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
  945. ucidef_set_led_usbport "usb1" "USB1" "$board:green:usb1" "1-1-port2"
  946. ucidef_set_led_usbport "usb2" "USB2" "$board:green:usb2" "1-1-port1"
  947. ;;
  948. tl-wr1043nd|\
  949. tl-wr1043nd-v2)
  950. ucidef_set_led_usbport "usb" "USB" "tp-link:green:usb" "usb1-port1"
  951. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  952. ;;
  953. tl-wr1043n-v5|\
  954. tl-wr1043nd-v4)
  955. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  956. ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
  957. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
  958. ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  959. ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
  960. ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  961. case "$board" in
  962. tl-wr1043nd-v4)
  963. ucidef_set_led_usbport "usb" "USB" "tp-link:green:usb" "usb1-port1"
  964. ;;
  965. esac
  966. ;;
  967. tl-wr2543n)
  968. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
  969. ucidef_set_led_usbport "usb" "USB" "tp-link:green:usb" "usb1-port1"
  970. ;;
  971. tube2h)
  972. ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
  973. ucidef_set_rssimon "wlan0" "200000" "1"
  974. ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
  975. ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
  976. ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
  977. ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
  978. ;;
  979. wam250)
  980. ucidef_set_led_netdev "lan" "LAN" "$board:white:lan" "eth0"
  981. ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wlan" "phy0tpt"
  982. ;;
  983. wndap360)
  984. ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
  985. ;;
  986. wndr3700)
  987. ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
  988. ucidef_set_led_usbport "usb" "USB" "netgear:green:usb" "usb1-port1"
  989. ;;
  990. wi2a-ac200i)
  991. ucidef_set_led_default "power" "Power (green)" "nokia:green:power" "1"
  992. ucidef_set_led_default "wan" "Ethernet LED (green)" "nokia:green:wan" "1"
  993. ucidef_set_led_wlan "wlan5g" "WLAN" "nokia:green:wlan-5g" "phy0tpt"
  994. ucidef_set_led_wlan "wlan2g" "WLAN" "nokia:green:wlan-2g" "phy1tpt"
  995. ;;
  996. wndr3700v4|\
  997. wndr4300)
  998. ucidef_set_led_switch "wan-green" "WAN (green)" "netgear:green:wan" "switch0" "0x20" "0x08"
  999. ucidef_set_led_switch "wan-amber" "WAN (amber)" "netgear:amber:wan" "switch0" "0x20" "0x06"
  1000. ucidef_set_led_usbport "usb" "USB" "netgear:green:usb" "usb1-port1"
  1001. ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
  1002. ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
  1003. ;;
  1004. whr-g301n|\
  1005. whr-hp-g300n|\
  1006. whr-hp-gn)
  1007. ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
  1008. ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
  1009. ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
  1010. ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
  1011. ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
  1012. ;;
  1013. wifi-pineapple-nano)
  1014. ucidef_set_led_wlan "wlan0" "WLAN0" "$board:blue:system" "phy0tpt"
  1015. ;;
  1016. wlae-ag300n)
  1017. ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
  1018. ;;
  1019. wnr1000-v2|\
  1020. wnr2000-v3)
  1021. ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
  1022. ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
  1023. ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
  1024. ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
  1025. ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
  1026. ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
  1027. ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
  1028. ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
  1029. ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
  1030. ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
  1031. ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
  1032. ;;
  1033. wnr2000-v4)
  1034. ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
  1035. ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
  1036. ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
  1037. ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
  1038. ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
  1039. ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
  1040. ucidef_set_led_usbport "usb" "USB" "netgear:amber:status" "usb1-port1"
  1041. ;;
  1042. wnr2200)
  1043. ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
  1044. ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
  1045. ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
  1046. ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
  1047. ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
  1048. ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
  1049. ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
  1050. ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
  1051. ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
  1052. ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
  1053. ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
  1054. ucidef_set_led_usbport "usb" "USB" "netgear:green:usb" "usb1-port1"
  1055. ;;
  1056. wnr612-v2)
  1057. ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
  1058. ucidef_set_led_wlan "wlan" "WLAN" "netgear:green:wlan" "phy0tpt"
  1059. ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
  1060. ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
  1061. ;;
  1062. wpn824n)
  1063. ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
  1064. ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
  1065. ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
  1066. ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
  1067. ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
  1068. ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
  1069. ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
  1070. ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
  1071. ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
  1072. ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
  1073. ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
  1074. ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
  1075. ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
  1076. ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
  1077. ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
  1078. ;;
  1079. wzr-hp-ag300h)
  1080. ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
  1081. ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
  1082. ucidef_set_led_wlan "wlan2g" "WLAN2G" "buffalo:amber:band2g" "phy0tpt"
  1083. ucidef_set_led_wlan "wlan5g" "WLAN5G" "buffalo:amber:band5g" "phy1tpt"
  1084. ucidef_set_led_usbport "usb" "USB" "buffalo:green:usb" "usb1-port1"
  1085. ;;
  1086. wzr-hp-g300nh)
  1087. ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
  1088. ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
  1089. ucidef_set_led_usbport "usb" "USB" "buffalo:blue:usb" "usb1-port1"
  1090. ;;
  1091. wzr-hp-g300nh2|\
  1092. wzr-hp-g450h)
  1093. ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
  1094. ;;
  1095. xd3200)
  1096. ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
  1097. ;;
  1098. z1)
  1099. ucidef_set_led_netdev "wlan1" "WLAN1" "$board:blue:tricolor0" "wlan1"
  1100. ;;
  1101. zcn-1523h-2)
  1102. ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
  1103. ;;
  1104. zcn-1523h-5)
  1105. ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
  1106. ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
  1107. ;;
  1108. esac
  1109. board_config_flush
  1110. exit 0