mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-27 08:31:44 +08:00
13 lines
285 B
Bash
13 lines
285 B
Bash
#!/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
|