small-packages/liep/luci-app-syncthing/root/etc/uci-defaults/luci-app-syncthing
2026-05-10 09:48:30 +08:00

14 lines
291 B
Bash

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