summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-sqm/root/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-sqm/root/etc/uci-defaults')
-rwxr-xr-xapplications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm13
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm b/applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm
new file mode 100755
index 0000000000..a3046b2a0f
--- /dev/null
+++ b/applications/luci-app-sqm/root/etc/uci-defaults/50-luci-sqm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@sqm[-1]
+ add ucitrack sqm
+ set ucitrack.@sqm[-1].init=sqm
+ del_list ucitrack.@firewall[0].affects=sqm
+ add_list ucitrack.@firewall[0].affects=sqm
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0