summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-wshaper/root/etc
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-10-15 18:47:42 +0000
committerManuel Munz <freifunk@somakoma.de>2011-10-15 18:47:42 +0000
commit87a3f2f12999abd7f88e186ee87f32255f4a339b (patch)
treecaa615fd5b4f480fd1d9f4b2830dd474119eccf0 /applications/luci-wshaper/root/etc
parent594e333a7788c47e7c83b655a34f7be73d0551d9 (diff)
applications: Add luci-wshaper (#53)
Diffstat (limited to 'applications/luci-wshaper/root/etc')
-rw-r--r--applications/luci-wshaper/root/etc/uci-defaults/luci-wshaper11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-wshaper/root/etc/uci-defaults/luci-wshaper b/applications/luci-wshaper/root/etc/uci-defaults/luci-wshaper
new file mode 100644
index 0000000000..9e4eb15f07
--- /dev/null
+++ b/applications/luci-wshaper/root/etc/uci-defaults/luci-wshaper
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@wshaper[-1]
+ add ucitrack wshaper=wshaper
+ set ucitrack.wshaper.exec='/etc/init.d/wshaper start'
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0