luci/applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3
danrl a25c71f556 luci-app-mwan3: initial commit
Moved over here from the packages repository.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-17 11:22:01 +01:00

14 lines
282 B
Bash
Executable file

#!/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