mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 13:03:56 +08:00
⛅ Sync 2026-10-06 21:11:19
This commit is contained in:
1 parent
fa160a7a5e
commit
bcd6b07350
430 files changed
+1035
-48585
No files matched your search
@@ -1,20 +1,17 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=50
|
||||
START=99
|
||||
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 &
|
||||
verysync -gui-address="0.0.0.0:${port}" -logfile="/var/log/verysync.log" -home="/etc/verysync/" -no-browser >/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -9 `pgrep "${VERYSYNC}"` >/dev/null 2>&1
|
||||
kill -9 `pgrep verysync` >/dev/null 2>&1
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
[ ! -f "/usr/share/ucitrack/luci-app-verysync.json" ] && {
|
||||
cat > /usr/share/ucitrack/luci-app-verysync.json << EEOF
|
||||
{
|
||||
"config": "verysync",
|
||||
"init": "verysync"
|
||||
}
|
||||
EEOF
|
||||
}
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@verysync[-1]
|
||||
add ucitrack verysync
|
||||
set ucitrack.@verysync[-1].init=verysync
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
Reference in new issue
Block a user