projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: image: introduce mkmtd/{,phys,spi} helpers
[openwrt.git]
/
target
/
linux
/
ramips
/
base-files
/
etc
/
uci-defaults
/
leds
diff --git
a/target/linux/ramips/base-files/etc/uci-defaults/leds
b/target/linux/ramips/base-files/etc/uci-defaults/leds
index
e6c7e84
..
d8f3c0c
100755
(executable)
--- a/
target/linux/ramips/base-files/etc/uci-defaults/leds
+++ b/
target/linux/ramips/base-files/etc/uci-defaults/leds
@@
-16,12
+16,38
@@
commit system
EOF
}
EOF
}
+set_wifi_led() {
+ local sysfs="$1"
+
+ uci batch <<EOF
+set system.wifi_led=led
+set system.wifi_led.name='wifi'
+set system.wifi_led.sysfs='$sysfs'
+set system.wifi_led.trigger='netdev'
+set system.wifi_led.dev='wlan0'
+set system.wifi_led.mode='link rx tx'
+commit system
+EOF
+}
+
board=$(ramips_board_name)
case $board in
board=$(ramips_board_name)
case $board in
+ all0256n)
+ set_wifi_led "rt2800pci-phy0::radio"
+ ;;
bc2)
set_usb_led "bc2:blue:usb"
;;
bc2)
set_usb_led "bc2:blue:usb"
;;
+ esr-9753)
+ set_wifi_led "rt2800pci-phy0::radio"
+ ;;
+ f5d8235-v1)
+ set_usb_led "f5d8235-v1:blue:storage"
+ ;;
+ f5d8235-v2)
+ set_usb_led "f5d8235v2:blue:storage"
+ ;;
fonera20n)
set_usb_led "fonera20n:amber:usb"
;;
fonera20n)
set_usb_led "fonera20n:amber:usb"
;;
@@
-34,4
+60,17
@@
case $board in
nw718)
set_usb_led "nw718:amber:usb"
;;
nw718)
set_usb_led "nw718:amber:usb"
;;
+ sl-r7205)
+ set_wifi_led "rt2800pci-phy0::radio"
+ ;;
+ v11st-fe)
+ set_wifi_led "rt2800pci-phy0::radio"
+ ;;
+ w502u)
+ set_usb_led "alfa:blue:usb"
+ set_wifi_led "rt2800pci-phy0::radio"
+ ;;
+ wcr-150gn)
+ set_usb_led "wcr150gn:amber:user"
+ ;;
esac
esac
This page took
0.023074 seconds
and
4
git commands to generate.