summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dynapoint/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-dynapoint/root/etc')
-rw-r--r--applications/luci-app-dynapoint/root/etc/uci-defaults/40_luci-dynapoint13
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-app-dynapoint/root/etc/uci-defaults/40_luci-dynapoint b/applications/luci-app-dynapoint/root/etc/uci-defaults/40_luci-dynapoint
new file mode 100644
index 0000000000..7287ccd420
--- /dev/null
+++ b/applications/luci-app-dynapoint/root/etc/uci-defaults/40_luci-dynapoint
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# needed for "Save and Apply" to restart dynapoint
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@dynapoint[-1]
+ add ucitrack dynapoint
+ set ucitrack.@dynapoint[-1].init="dynapoint"
+ commit dynapoint
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+