From fdc7cc99071de6bd1d6a240d4cd306c57920ccac Mon Sep 17 00:00:00 2001 From: Edmunt Pienkowsky Date: Fri, 27 Oct 2017 10:17:34 +0200 Subject: [PATCH] base-files: add interval option to netdev LED trigger configuration Add an uci option to set the interval parameter of the netdev trigger. Signed-off-by: Edmunt Pienkowsky --- package/base-files/Makefile | 2 +- package/base-files/files/etc/init.d/led | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 216e45757e..e6c53e95a4 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/version.mk PKG_NAME:=base-files -PKG_RELEASE:=176 +PKG_RELEASE:=177 PKG_FLAGS:=nonshared PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 7c2a185013..c790e3e181 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -72,6 +72,7 @@ load_led() { [ -n "$dev" ] && { echo $dev > /sys/class/leds/${sysfs}/device_name echo $mode > /sys/class/leds/${sysfs}/mode + echo $interval > /sys/class/leds/${sysfs}/interval } ;; -- 2.25.1