mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 04:55:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,2 @@
|
||||
|
||||
config verysync 'config'
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=50
|
||||
STOP=10
|
||||
|
||||
VERYSYNC="/usr/bin/verysync"
|
||||
|
||||
start() {
|
||||
local enabled="$(uci get verysync.config.enabled)"
|
||||
local port="$(uci get verysync.config.port)"
|
||||
local profile="$(uci get verysync.config.profile)"
|
||||
stop
|
||||
[ "${enabled}" == "1" ] || exit 0
|
||||
export HOME="/root/"
|
||||
"${VERYSYNC}" -gui-address="0.0.0.0:${port}" -logfile="/var/log/verysync.log" -home="${profile}" -no-browser >/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -9 `pgrep "${VERYSYNC}"` >/dev/null 2>&1
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"luci-app-verysync": {
|
||||
"description": "Grant UCI access for luci-app-verysync",
|
||||
"read": {
|
||||
"uci": [ "verysync" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "verysync" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"config": "verysync",
|
||||
"init": "verysync"
|
||||
}
|
||||
Reference in new issue
Block a user