You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
282 B

  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