summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files/lib/functions/lantiq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/base-files/lib/functions/lantiq.sh')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
index 456e54b..e4eb4d7 100644
--- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
@@ -32,7 +32,7 @@ lantiq_get_dt_led() {
local label
local ledpath
local basepath="/sys/firmware/devicetree/base"
- local nodepath="$basepath/chosen/leds/$1"
+ local nodepath="$basepath/aliases/led-$1"
[ -f "$nodepath" ] && ledpath=$(cat "$nodepath")
[ -n "$ledpath" ] && label=$(cat "$basepath$ledpath/label")