summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/root/etc/uci-defaults
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-10-30 10:10:46 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2016-10-30 10:10:46 +0200
commit3c23cc64703e246f2ad57070adbdc86fd575907c (patch)
tree078ff3b4e29a8ddc0213a2198024c64fb9e5c846 /applications/luci-app-travelmate/root/etc/uci-defaults
parent98e12fcebba7cf0a962f316e572077cacfac43d3 (diff)
luci-app-travelmate: user interface for Travelmate package
Create user interface for Travelmate, a new package that helps in creating travel router functionality. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-travelmate/root/etc/uci-defaults')
-rwxr-xr-xapplications/luci-app-travelmate/root/etc/uci-defaults/40_luci-travelmate11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-travelmate/root/etc/uci-defaults/40_luci-travelmate b/applications/luci-app-travelmate/root/etc/uci-defaults/40_luci-travelmate
new file mode 100755
index 000000000..f7676774a
--- /dev/null
+++ b/applications/luci-app-travelmate/root/etc/uci-defaults/40_luci-travelmate
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@travelmate[-1]
+ add ucitrack travelmate
+ set ucitrack.@travelmate[-1].init=travelmate
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0