mwan-luci 282 B

1234567891011121314
  1. #!/bin/sh
  2. # replace existing mwan ucitrack entry
  3. uci -q batch <<-EOF >/dev/null
  4. del ucitrack.@mwan3[-1]
  5. add ucitrack mwan3
  6. set ucitrack.@mwan3[-1].exec="/usr/sbin/mwan3 restart"
  7. commit ucitrack
  8. EOF
  9. # remove LuCI cache
  10. rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
  11. exit 0