summaryrefslogtreecommitdiff
path: root/target/linux/ar7/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar7/base-files')
-rw-r--r--target/linux/ar7/base-files/etc/diag.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar7/base-files/etc/diag.sh b/target/linux/ar7/base-files/etc/diag.sh
index 22acc71..af4a1f3 100644
--- a/target/linux/ar7/base-files/etc/diag.sh
+++ b/target/linux/ar7/base-files/etc/diag.sh
@@ -4,13 +4,13 @@
set_led() {
local led="$1"
local state="$2"
- [ -d "/sys/class/leds/ar7:$led" ] && echo "$state" > "/sys/class/leds/ar7:$led/brightness"
+ [ -d "/sys/class/leds/$led" ] && echo "$state" > "/sys/class/leds/$led/brightness"
}
set_state() {
case "$1" in
preinit)
- set_led status 1
+ set_led status 255
;;
done)
set_led status 0