aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorEdmunt Pienkowsky <roed@onet.eu>2017-10-27 10:17:34 +0200
committerMathias Kresin <dev@kresin.me>2017-11-03 20:04:52 +0100
commitfdc7cc99071de6bd1d6a240d4cd306c57920ccac (patch)
treea16060e2e4f07eacf04e4e6750c8cb4e0ab0ae5c /package/base-files/files/etc
parentf9311e40705e303d7cc79e5c296b5de233abb8cb (diff)
downloadupstream-fdc7cc99071de6bd1d6a240d4cd306c57920ccac.tar.gz
upstream-fdc7cc99071de6bd1d6a240d4cd306c57920ccac.tar.bz2
upstream-fdc7cc99071de6bd1d6a240d4cd306c57920ccac.zip
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>
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led1
1 files changed, 1 insertions, 0 deletions
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
}
;;