immortalwrt/package/zxlhhyccc/luci-app-syncthing/root/etc/uci-defaults/luci-syncthing
2019-08-04 07:14:34 +08:00

13 lines
257 B
Bash
Executable File

#!/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 restart'
commit ucitrack
EOF
# remove LuCI cache
rm -f /tmp/luci*
exit 0