diff options
Diffstat (limited to 'package/base-files/files/bin/config_generate')
-rwxr-xr-x | package/base-files/files/bin/config_generate | 4 |
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 |