summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-sqm/root/etc/uci-defaults
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-04-03 18:27:25 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2020-04-03 18:40:34 +0300
commitc03e395146122745c31ee37de7ce39c2f3bcc9d0 (patch)
treea9ccc99b2c86a2d003341f1919bae34d03645da3 /applications/luci-app-sqm/root/etc/uci-defaults
parentf21644ac39ff077b551b169927b7b5e7175d665c (diff)
luci-app-sqm: move from packages feed
Move the SQM app from the packages feed to enable translation. * Initialize translation Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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