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
349 B

  1. #!/bin/sh
  2. # delete existing mwan3 ucitrack entry and add new entry
  3. uci -q batch <<-EOF >/dev/null
  4. del ucitrack.@mwan3[-1]
  5. add ucitrack mwan3
  6. set ucitrack.@mwan3[-1].exec="/etc/init.d/mwan3 restart"
  7. commit ucitrack
  8. EOF
  9. # make controller file addition take effect without system restart
  10. rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
  11. exit 0