aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/bin/config_generate
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/bin/config_generate')
-rwxr-xr-xpackage/base-files/files/bin/config_generate10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index 7e0e2acd3b..264f7d3ed1 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -236,6 +236,16 @@ generate_led() {
set system.$cfg.port_mask='$port_mask'
EOF
;;
+
+ timer)
+ local delayon delayoff
+ json_get_vars delayon delayoff
+ uci -q batch <<-EOF
+ set system.$cfg.trigger='timer'
+ set system.$cfg.delayon='$delayon'
+ set system.$cfg.delayoff='$delayoff'
+ EOF
+ ;;
esac
json_select ..