#!/bin/sh touch /etc/config/syncthing uci -q batch <<-EOF >/dev/null delete ucitrack.@syncthing[-1] add ucitrack syncthing set ucitrack.@syncthing[-1].exec='/etc/init.d/syncthing stop && /etc/init.d/syncthing start' commit ucitrack EOF # remove LuCI cache rm -f /tmp/luci* exit 0