From c0c3f2d4c9178925f66f6df9fb0e4fcb370a8890 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Feb 2016 10:14:16 +0000 Subject: 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 SVN-Revision: 48770 --- package/base-files/files/bin/config_generate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/base-files/files/bin') 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 -- cgit v1.2.3