new naming/wording - more generically mwan than mwan3 renamed cryptic variables/functions/etc everywhere removed unused and unnecessary variables everywhere cleaned up ugly and inefficient Lua and Javascript Signed-off-by: Aedan Renner chipdankly@gmail.com
14 lines
282 B
Bash
Executable file
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
|