mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
3d8cb2300e
There's no eth0.2 since all ethernet ports as configured as LAN. LAN LED is unneeded since all ethernet ports have their own LED. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
108 lines
3.2 KiB
Bash
Executable File
108 lines
3.2 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
actiontec,r1000h)
|
|
ucidef_set_led_usbport "usb" "USB" "green:usb" "usb1-port1" "usb2-port1"
|
|
;;
|
|
adb,a4001n|\
|
|
adb,pdg-a4101n-a-000-1a1-ae|\
|
|
comtrend,ar-5315u|\
|
|
comtrend,vr-3032u|\
|
|
d-link,dsl-2750u-c1|\
|
|
huawei,hg253s-v2|\
|
|
nucom,r5010un-v2|\
|
|
sagem,fast-2704-v2)
|
|
ucidef_set_led_usbdev "usb" "USB" "green:usb" "1-1"
|
|
;;
|
|
adb,a4001n1)
|
|
ucidef_set_led_netdev "lan" "LAN" "green:eth" "eth0"
|
|
ucidef_set_led_usbdev "usb" "USB" "green:3g" "1-1"
|
|
;;
|
|
adb,pdg-a4001n-a-000-1a1-ax|\
|
|
technicolor,tg582n-telecom-italia)
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "green:wifi" "wlan0"
|
|
ucidef_set_led_usbdev "usb1" "USB1" "green:service" "1-1"
|
|
ucidef_set_led_usbdev "usb2" "USB2" "red:service" "2-1"
|
|
;;
|
|
adb,av4202n)
|
|
ucidef_set_led_netdev "wlan0" "WLAN" "blue:wifi" "wlan0"
|
|
;;
|
|
bt,home-hub-2-a)
|
|
ucidef_set_led_netdev "lan" "LAN" "blue:broadband" "eth0.1"
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "green:wireless" "wlan0"
|
|
ucidef_set_led_usbdev "usb1" "USB1" "blue:phone" "1-1"
|
|
ucidef_set_led_usbdev "usb2" "USB2" "green:phone" "2-1"
|
|
;;
|
|
huawei,echolife-hg553)
|
|
ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
|
|
ucidef_set_led_usbdev "usb1" "USB1" "red:hspa" "1-1"
|
|
ucidef_set_led_usbdev "usb2" "USB2" "blue:hspa" "1-2"
|
|
;;
|
|
huawei,echolife-hg556a-a|\
|
|
huawei,echolife-hg556a-b|\
|
|
huawei,echolife-hg556a-c)
|
|
ucidef_set_led_netdev "lan" "LAN" "red:dsl" "eth0"
|
|
ucidef_set_led_usbdev "usb" "USB" "red:hspa" "1-2"
|
|
;;
|
|
huawei,echolife-hg622|\
|
|
huawei,echolife-hg655b)
|
|
ucidef_set_led_usbdev "usb" "USB" "green:usb" "1-2"
|
|
;;
|
|
inventel,livebox-1)
|
|
ucidef_set_led_netdev "lan" "LAN" "red:traffic" "eth0"
|
|
ucidef_set_led_netdev "wan" "WAN" "red:adsl" "eth1"
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "red:wifi" "wlan0"
|
|
;;
|
|
netgear,dgnd3700-v1)
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0.1"
|
|
ucidef_set_led_netdev "wan" "WAN" "green:inet" "eth0.2"
|
|
ucidef_set_led_netdev "wlan0" "WIFI2G" "green:wifi2g" "wlan0"
|
|
ucidef_set_led_netdev "wlan1" "WIFI5G" "blue:wifi5g" "wlan1"
|
|
ucidef_set_led_usbdev "usb1" "USB1" "green:usb-back" "1-1"
|
|
ucidef_set_led_usbdev "usb2" "USB2" "green:usb-front" "1-2"
|
|
;;
|
|
netgear,dgnd3700-v2)
|
|
ucidef_set_led_netdev "lan" "LAN" "green:ethernet" "eth0"
|
|
ucidef_set_led_usbdev "usb1" "USB1" "green:usb1" "1-1"
|
|
ucidef_set_led_usbdev "usb2" "USB2" "green:usb2" "1-2"
|
|
;;
|
|
netgear,evg2000)
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "green:wireless" "wlan0"
|
|
ucidef_set_led_usbdev "usb1" "USB1" "green:voip1" "1-1"
|
|
ucidef_set_led_usbdev "usb2" "USB2" "green:voip2" "1-2"
|
|
;;
|
|
sagem,fast-2704n)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:inet" "eth0.2"
|
|
;;
|
|
sercomm,ad1018|\
|
|
sercomm,ad1018-nor)
|
|
ucidef_set_led_netdev "wlan0" "WLAN" "green:wifi" "wlan0"
|
|
;;
|
|
sercomm,h500-s-lowi|\
|
|
sercomm,h500-s-vfes)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:internet" "eth0.2"
|
|
;;
|
|
technicolor,tg582n)
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "green:wifi" "wlan0"
|
|
ucidef_set_led_usbdev "usb" "USB" "red:power" "1-1"
|
|
;;
|
|
telsey,cpva502plus)
|
|
ucidef_set_led_netdev "lan" "LAN" "amber:link" "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|