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 <roed@onet.eu>
This commit is contained in:
parent
f9311e4070
commit
fdc7cc9907
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||||
include $(INCLUDE_DIR)/version.mk
|
include $(INCLUDE_DIR)/version.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=176
|
PKG_RELEASE:=177
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
|
|
@ -72,6 +72,7 @@ load_led() {
|
||||||
[ -n "$dev" ] && {
|
[ -n "$dev" ] && {
|
||||||
echo $dev > /sys/class/leds/${sysfs}/device_name
|
echo $dev > /sys/class/leds/${sysfs}/device_name
|
||||||
echo $mode > /sys/class/leds/${sysfs}/mode
|
echo $mode > /sys/class/leds/${sysfs}/mode
|
||||||
|
echo $interval > /sys/class/leds/${sysfs}/interval
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue