Rework LuCI build system
[project/luci.git] / applications / luci-app-wshaper / root / etc / uci-defaults / wshaper
diff --git a/applications/luci-app-wshaper/root/etc/uci-defaults/wshaper b/applications/luci-app-wshaper/root/etc/uci-defaults/wshaper
new file mode 100644 (file)
index 0000000..918dff2
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@wshaper[-1]
+       set ucitrack.wshaper="wshaper"
+       set ucitrack.wshaper.exec='/etc/init.d/wshaper start'
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0