aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files
diff options
context:
space:
mode:
authorAlberto Bursi <alberto.bursi@outlook.it>2017-03-30 12:34:42 +0200
committerJo-Philipp Wich <jo@mein.io>2017-05-14 21:45:50 +0200
commitf7fd2abf259c7a463d215fc0e52c15ae77a050de (patch)
tree15079e4cca7bf262ba40a770c0499660ff397d55 /target/linux/kirkwood/base-files
parentb52eb549d2b8e41e5de58fe1815e689c12d4a184 (diff)
downloadupstream-f7fd2abf259c7a463d215fc0e52c15ae77a050de.tar.gz
upstream-f7fd2abf259c7a463d215fc0e52c15ae77a050de.tar.bz2
upstream-f7fd2abf259c7a463d215fc0e52c15ae77a050de.zip
kirkwood: set sata/usb led trigger for NSA3xx
these two devices have a Sata led for each sata port. These leds must be controlled separately by a special sata led trigger already used in oxnas target. Both these devices have a single USB led, and to keep consistent behaviour with the Sata leds that show sata activity, this led uses usb-host trigger to show usb activity. Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
Diffstat (limited to 'target/linux/kirkwood/base-files')
-rwxr-xr-xtarget/linux/kirkwood/base-files/etc/board.d/01_leds6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/etc/board.d/01_leds b/target/linux/kirkwood/base-files/etc/board.d/01_leds
index e6da9fd49a..0608440533 100755
--- a/target/linux/kirkwood/base-files/etc/board.d/01_leds
+++ b/target/linux/kirkwood/base-files/etc/board.d/01_leds
@@ -40,9 +40,15 @@ case "$board" in
;;
"nsa310b")
ucidef_set_led_default "health" "health" "nsa310:green:sys" "1"
+ ucidef_set_led_usbhost "usb" "USB" "nsa310:green:usb"
+ ucidef_set_led_ataport "hdd" "HDD" "nsa310:green:hdd" "1"
+ ucidef_set_led_ataport "esata" "eSata" "nsa310:green:esata" "2"
;;
"nsa325")
ucidef_set_led_default "health" "health" "nsa325:green:sys" "1"
+ ucidef_set_led_usbhost "usb" "USB" "nsa325:green:usb"
+ ucidef_set_led_ataport "hdd1" "HDD1" "nsa325:green:sata1" "1"
+ ucidef_set_led_ataport "hdd2" "HDD2" "nsa325:green:sata2" "2"
;;
"sheevaplug" | \
"sheevaplug-esata")