diff options
author | danrl <mail@danrl.com> | 2017-02-17 11:22:01 +0100 |
---|---|---|
committer | danrl <mail@danrl.com> | 2017-02-17 11:22:01 +0100 |
commit | a25c71f55697d13c0a12da104bde7fee57d00f2c (patch) | |
tree | 7398b15679d049fc3eb9db06451e6898991fd68e /applications/luci-app-mwan3/root/etc/uci-defaults | |
parent | 9726e26a7a2ea6052827472bfbec3c9914abedf8 (diff) |
luci-app-mwan3: initial commit
Moved over here from the packages repository.
Signed-off-by: Dan Luedtke <mail@danrl.com>
Diffstat (limited to 'applications/luci-app-mwan3/root/etc/uci-defaults')
-rwxr-xr-x | applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3 b/applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3 new file mode 100755 index 0000000000..ff9a229edd --- /dev/null +++ b/applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3 @@ -0,0 +1,14 @@ +#!/bin/sh + +# replace existing mwan ucitrack entry +uci -q batch <<-EOF >/dev/null + del ucitrack.@mwan3[-1] + add ucitrack mwan3 + set ucitrack.@mwan3[-1].exec="/usr/sbin/mwan3 restart" + commit ucitrack +EOF + +# remove LuCI cache +rm -rf /tmp/luci-indexcache /tmp/luci-modulecache + +exit 0 |