base-files: add interval option to netdev LED trigger configuration
authorEdmunt Pienkowsky <roed@onet.eu>
Fri, 27 Oct 2017 08:17:34 +0000 (10:17 +0200)
committerMathias Kresin <dev@kresin.me>
Fri, 3 Nov 2017 19:04:52 +0000 (20:04 +0100)
Add an uci option to set the interval parameter of the netdev trigger.

Signed-off-by: Edmunt Pienkowsky <roed@onet.eu>
package/base-files/Makefile
package/base-files/files/etc/init.d/led

index 216e45757e891cad523072b9c5a62ca0a5e95f91..e6c53e95a4b6d030df2a00240f0b27169f24daab 100644 (file)
@@ -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/
index 7c2a185013d2aa52db1ef8baaccf6053e5633fdd..c790e3e181f5c9dffeedfb0b267e64412b782142 100755 (executable)
@@ -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
                        }
                        ;;