diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 71a52c3b41..4dec9291d7 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk include $(INCLUDE_DIR)/feeds.mk PKG_NAME:=base-files -PKG_RELEASE:=201 +PKG_RELEASE:=202 PKG_FLAGS:=nonshared PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ diff --git a/package/base-files/files/lib/functions/leds.sh b/package/base-files/files/lib/functions/leds.sh index 8a1d21caef..5b51e70b0a 100755 --- a/package/base-files/files/lib/functions/leds.sh +++ b/package/base-files/files/lib/functions/leds.sh @@ -10,7 +10,8 @@ get_dt_led() { [ -f "$nodepath" ] && ledpath=$(cat "$nodepath") [ -n "$ledpath" ] && \ label=$(cat "$basepath$ledpath/label" 2>/dev/null) || \ - label=$(cat "$basepath$ledpath/chan-name" 2>/dev/null) + label=$(cat "$basepath$ledpath/chan-name" 2>/dev/null) || \ + label=$(basename "$basepath$ledpath") echo "$label" }