summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2017-01-26 14:54:48 -0800
committerStan Grishin <stangri@melmac.net>2017-01-26 14:54:48 -0800
commitc9c76a136af2c7a1936655e667b9949862dc4842 (patch)
tree4176cc0634812b8923d02227515f349ddd3648be /applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass
parenta7c5c018b6782f4160410981c723c82db9762ff7 (diff)
luci-app-vpnbypass: initial commit of companion app to vpnbypass package
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass')
-rw-r--r--applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass b/applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass
new file mode 100644
index 000000000..9455701a0
--- /dev/null
+++ b/applications/luci-app-vpnbypass/root/etc/uci-defaults/40_luci-vpnbypass
@@ -0,0 +1,11 @@
+#!/bin/sh
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@vpnbypass[-1]
+ add ucitrack vpnbypass
+ set ucitrack.@vpnbypass[-1].init=vpnbypass
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+