summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dynapoint/root/etc/uci-defaults
diff options
context:
space:
mode:
authorascob <menosmalo753@gmail.com>2016-10-05 18:40:07 +0200
committerascob <menosmalo753@gmail.com>2017-01-15 14:18:08 +0100
commitcd8096b0ce66be927fa0e73405aa503e2201c2ca (patch)
tree10d30c64b610f847f1af01ffcff0d74b680d8383 /applications/luci-app-dynapoint/root/etc/uci-defaults
parentd4c33720208346ee7983213fe764df3102b8a771 (diff)
luci-app-dynapoint: new package
Add luci-app-dynapoint to repo LuCI Support for DynaPoint Dynapoint allows dynamic access point creation and deletion depending on changes of certain network conditions. More information: https://github.com/thuehn/dynapoint Signed-off-by: Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
Diffstat (limited to 'applications/luci-app-dynapoint/root/etc/uci-defaults')
-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 000000000..7287ccd42
--- /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
+