aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/bin
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-02-25 10:14:16 +0000
committerJohn Crispin <john@openwrt.org>2016-02-25 10:14:16 +0000
commitc0c3f2d4c9178925f66f6df9fb0e4fcb370a8890 (patch)
tree0e0db814faec378704f8e4f11d7c71d9b39695f2 /package/base-files/files/bin
parent56714adb4b7ed42e6f50310eef1c680f206d8a04 (diff)
downloadupstream-c0c3f2d4c9178925f66f6df9fb0e4fcb370a8890.tar.gz
upstream-c0c3f2d4c9178925f66f6df9fb0e4fcb370a8890.tar.bz2
upstream-c0c3f2d4c9178925f66f6df9fb0e4fcb370a8890.zip
leds: support oneshot as well as timer triggers
oneshot and timer have the same configuration options, just a different trigger name. Signed-off-by: Karl Palsson <karlp@etactica.com> SVN-Revision: 48770
Diffstat (limited to 'package/base-files/files/bin')
-rwxr-xr-xpackage/base-files/files/bin/config_generate4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index 92eb14bb11..28ba0e2694 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -303,11 +303,11 @@ generate_led() {
EOF
;;
- timer)
+ timer|oneshot)
local delayon delayoff
json_get_vars delayon delayoff
uci -q batch <<-EOF
- set system.$cfg.trigger='timer'
+ set system.$cfg.trigger='$type'
set system.$cfg.delayon='$delayon'
set system.$cfg.delayoff='$delayoff'
EOF