01_leds 32 KB

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