syncthing: add package

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 373d3b2420)
Tested-By: Marc Benoit <marcb62185@gmail.com> [19.07: R7800/GL-B1300]
This commit is contained in:
Paul Spooren
2018-06-26 12:28:21 +09:00
committed by Marc Benoit
parent 99efce0cd2
commit 56af7bcf19
4 changed files with 91 additions and 0 deletions
@@ -0,0 +1,3 @@
config syncthing 'syncthing'
option gui_address 'http://127.0.0.1:8384'
option home '/etc/syncthing/'
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh /etc/rc.common
START=99
PROG=/usr/bin/syncthing
start_service() {
[ -d /var/syncthing/ ] || mkdir /var/syncthing/
local gui_address home
config_load "syncthing"
config_get gui_address syncthing gui_address "http://127.0.0.1:8384"
config_get home syncthing home "/etc/syncthing/"
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -gui-address="$gui_address"
procd_append_param command -home="$home"
procd_set_param respawn
procd_close_instance
}
+1
View File
@@ -0,0 +1 @@
/var/syncthing/