Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e3ab16acf | ||
|
|
586e5b108f | ||
|
|
d0b93c75da | ||
|
|
4b26dc5b8f | ||
|
|
04baeb2d15 |
No files matched your search
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/ssroutined 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada375/ssmessaged 0755
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/ssroutined 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armada38x/ssmessaged 0755
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssmessaged 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssroutined 0755
|
||||
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/ssmessaged 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-armv8/ssroutined 0755
|
||||
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/ssmessaged 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64/ssroutined 0755
|
||||
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/ssroutined 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/ssmessaged 0755
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/ssroutined 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/ssmessaged 0755
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://raw.githubusercontent.com/ohyeah521/Surveillance-Station/main/9.2.0_11289/license/remove_license)
|
||||
|
||||
|
||||
# 定义一个函数来处理恢复文件操作
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local backup="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
|
||||
# 检查备份文件是否存在
|
||||
if [ -e "./$backup" ]; then
|
||||
rm "./$file"
|
||||
mv "./$backup" "./$file"
|
||||
chown SurveillanceStation:SurveillanceStation "./$file"
|
||||
chmod "$mode" "./$file"
|
||||
else
|
||||
echo "Error: Backup file $backup does not exist in $dir"
|
||||
fi
|
||||
}
|
||||
# 解除屏蔽认证服务器
|
||||
unblock_license_server() {
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "Unblocking license server: synosurveillance.synology.com"
|
||||
sudo sed -i '/synosurveillance.synology.com/d' /etc/hosts
|
||||
else
|
||||
echo "License server not blocked: synosurveillance.synology.com."
|
||||
fi
|
||||
}
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 调用函数处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so libssutils.so_backup 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd sscmshostd_backup 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored sscored_backup 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord ssdaemonmonitord_backup 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd ssexechelperd_backup 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined ssroutined_backup 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged ssmessaged_backup 0755
|
||||
unblock_license_server
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
@@ -0,0 +1,46 @@
|
||||
# 免责声明
|
||||
|
||||
本研究旨在为了学术和技术交流的目的,探讨商业软件注册限制的绕过方法。
|
||||
|
||||
**特别声明:**
|
||||
|
||||
1. 本研究仅用于学术研究和技术学习,不得用于任何违法或不正当的目的,包括但不限于商业用途、侵权行为或破坏性操作。
|
||||
2. 研究成果的发布不代表对绕过方法的推广或鼓励,也不对任何由此产生的法律责任或后果承担责任。
|
||||
3. 用户应自行确保在进行任何相关操作之前,已经获得软件供应商的授权许可,并遵守所有相关法律法规。
|
||||
4. 本免责声明不适用于任何违反法律法规的行为,作者不对因使用本研究成果而产生的任何法律责任、经济损失或其他不良后果承担责任。
|
||||
|
||||
请使用者在使用本研究成果时,自觉遵守法律法规,并对自己的行为负责。
|
||||
|
||||
---
|
||||
### 交流群
|
||||
[Telegram Group](https://t.me/+40j656PRiB41NTI1)
|
||||
|
||||
---
|
||||
### 请我喝杯咖啡
|
||||
- [PayPal](https://paypal.me/wovow)
|
||||
|
||||
- 
|
||||
|
||||
## [Surveillance Station 9.2.1_11380](https://archive.synology.com/download/Package/SurveillanceStation)
|
||||
|
||||
---
|
||||
### x86_64版本
|
||||
- [Download](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.1-11380/SurveillanceStation-x86_64-9.2.1-11380.spk)
|
||||
- Script:
|
||||
```
|
||||
bash <(curl -L https://raw.githubusercontent.com/ohyeah521/Surveillance-Station/main/9.2.1_11380/SurveillanceStation-x86_64/install_license)
|
||||
```
|
||||
|
||||
|
||||
---
|
||||
### 恢复默认授权
|
||||
- Script:
|
||||
```
|
||||
bash <(curl -L https://raw.githubusercontent.com/ohyeah521/Surveillance-Station/main/9.2.0_11289/license/remove_license)
|
||||
```
|
||||
---
|
||||
### 破解60授权
|
||||

|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/ssroutined 0755
|
||||
# process_file /var/packages/SurveillanceStation/target/sbin ssrtmpclientd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.1_11380/SurveillanceStation-x86_64/ssrtmpclientd 0755
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
# 免责声明
|
||||
|
||||
本研究旨在为了学术和技术交流的目的,探讨商业软件注册限制的绕过方法。
|
||||
|
||||
**特别声明:**
|
||||
|
||||
1. 本研究仅用于学术研究和技术学习,不得用于任何违法或不正当的目的,包括但不限于商业用途、侵权行为或破坏性操作。
|
||||
2. 研究成果的发布不代表对绕过方法的推广或鼓励,也不对任何由此产生的法律责任或后果承担责任。
|
||||
3. 用户应自行确保在进行任何相关操作之前,已经获得软件供应商的授权许可,并遵守所有相关法律法规。
|
||||
4. 本免责声明不适用于任何违反法律法规的行为,作者不对因使用本研究成果而产生的任何法律责任、经济损失或其他不良后果承担责任。
|
||||
|
||||
请使用者在使用本研究成果时,自觉遵守法律法规,并对自己的行为负责。
|
||||
|
||||
---
|
||||
### 交流群
|
||||
[Telegram Group](https://t.me/+40j656PRiB41NTI1)
|
||||
|
||||
---
|
||||
### 请我喝杯咖啡
|
||||
- [PayPal](https://paypal.me/wovow)
|
||||
|
||||
- 
|
||||
|
||||
## [Surveillance Station 9.2.2_11575](https://archive.synology.com/download/Package/SurveillanceStation)
|
||||
|
||||
---
|
||||
### x86_64版本
|
||||
- 等等……
|
||||
|
||||
|
||||
|
||||
|
||||
---
|
||||
### 恢复默认授权
|
||||
- Script:
|
||||
```
|
||||
bash <(curl -L https://raw.githubusercontent.com/ohyeah521/Surveillance-Station/main/9.2.0_11289/license/remove_license)
|
||||
```
|
||||
---
|
||||
### 破解60授权
|
||||

|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/ssroutined 0755
|
||||
# process_file /var/packages/SurveillanceStation/target/sbin ssrtmpclientd https://github.com/ohyeah521/Surveillance-Station/raw/main/9.2.2_11575/SurveillanceStation-x86_64/ssrtmpclientd 0755
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,39 +1,121 @@
|
||||
## [Surveillance Station 9.1.2-10854](https://archive.synology.com/download/Package/SurveillanceStation)
|
||||
# [Surveillance Station 9.2.0-11289](https://archive.synology.com/download/Package/SurveillanceStation)
|
||||
|
||||
---
|
||||
[尊重版权,此仓库仅做搬运和国内加速,请点击我阅读原作者的所有信息!](https://github.com/ohyeah521/Surveillance-Station)
|
||||
---
|
||||
|
||||
---
|
||||
### 任务计划
|
||||
> ⚠️如果你会使用SSH则不需要看这部分
|
||||
- 控制面板 -> 任务计划
|
||||
- 创建 -> 定时任务 -> 用户定义脚本
|
||||
- 常规: 用户 = root,取消选中启用
|
||||
- 任务设置: 用户定义脚本 = ...
|
||||
- 确定 - 确定
|
||||
- 单击并运行任务。
|
||||
- 在看到有58个许可证时删除此任务。
|
||||
- 在看到有60个许可证时删除此任务。
|
||||
|
||||
|
||||
### 免责声明
|
||||
|
||||
🥤本研究旨在为了学术和技术交流的目的,探讨商业软件注册限制的绕过方法。
|
||||
|
||||
**特别声明:**
|
||||
|
||||
1. 本研究仅用于学术研究和技术学习,不得用于任何违法或不正当的目的,包括但不限于商业用途、侵权行为或破坏性操作。
|
||||
2. 研究成果的发布不代表对绕过方法的推广或鼓励,也不对任何由此产生的法律责任或后果承担责任。
|
||||
3. 用户应自行确保在进行任何相关操作之前,已经获得软件供应商的授权许可,并遵守所有相关法律法规。
|
||||
4. 本免责声明不适用于任何违反法律法规的行为,作者不对因使用本研究成果而产生的任何法律责任、经济损失或其他不良后果承担责任。
|
||||
|
||||
请使用者在使用本研究成果时,自觉遵守法律法规,并对自己的行为负责。
|
||||
|
||||
---
|
||||
### A. x86_64 (9.1.2-10854)
|
||||
- 下载链接: https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.1.2-10854/SurveillanceStation-x86_64-9.1.2-10854.spk
|
||||
- 脚本:
|
||||
## ⚠️⚠️⚠️注意(仅在使用9.2.0_11289时)
|
||||
若遇到最新版群晖系统提示“11289与您的Synology NAS不兼容,请上传9.2.1-11320或以上版本”导致无法安装,请执行以下代码,通过SSH或者计划任务执行均可:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-x86_64/install_license)
|
||||
cp /etc.defaults/synopackageslimit.conf /etc.defaults/synopackageslimit.conf.bak
|
||||
sed -i 's/SurveillanceStation="9.2.1-11320"/SurveillanceStation="9.2.0-11289"/g' /etc.defaults/synopackageslimit.conf
|
||||
```
|
||||
|
||||
### B. x86_64_openvino (9.1.1-10728)
|
||||
- 下载链接: https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.1.1-10728/SurveillanceStation-x86_64-9.1.1-10728_openvino.spk
|
||||
- 脚本:
|
||||
若后续无需使用了需要系统恢复正常,执行以下代码:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-x86_64_openvino/install_license)
|
||||
cp /var/packages/SurveillanceStation/INFO /var/packages/SurveillanceStation/INFO.bak
|
||||
sed -i 's/version="9.2.0-11289"/version="99.2.0-11289"/g' /var/packages/SurveillanceStation/INFO
|
||||
```
|
||||
---
|
||||
|
||||
#以下为各群晖版本安装包下载地址以及破解脚本
|
||||
|
||||
### x86_64版本(⚠️⚠️⚠️新版请尝试该脚本)
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.2-11575/SurveillanceStation-x86_64-9.2.2-11575.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.2-11575/SurveillanceStation-x86_64/install_license)
|
||||
```
|
||||
|
||||
### C. armada38x (9.0.2-10061)
|
||||
- 下载链接: https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.0.2-10061/SurveillanceStation-armada38x-9.0.2-10061.spk
|
||||
- 脚本:
|
||||
### x86_64版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-x86_64-9.2.0-11289.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-armada38x/install_license)
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-x86_64/install_license)
|
||||
```
|
||||
|
||||
---
|
||||
### 删除许可证&复原
|
||||
- 脚本:
|
||||
### x86_64-openvino版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-x86_64-9.2.0-11289_openvino.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/remove_license)
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-x86_64_openvino/install_license)
|
||||
```
|
||||
|
||||
---
|
||||
### x86_64-DVA_3221版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-x86_64-9.2.0-11289_DVA_3221.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-x86_64_dva_3321/install_license)
|
||||
```
|
||||
---
|
||||
### armada375版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-armada375-9.2.0-11289.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armada375/install_license)
|
||||
```
|
||||
|
||||
---
|
||||
### armada38x版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-armada38x-9.2.0-11289.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armada38x/install_license)
|
||||
```
|
||||
|
||||
---
|
||||
### armv7版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-armv7-9.2.0-11289.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/install_license)
|
||||
```
|
||||
|
||||
---
|
||||
### armv8版本
|
||||
- [安装包](https://global.synologydownload.com/download/Package/spk/SurveillanceStation/9.2.0-11289/SurveillanceStation-armv8-9.2.0-11289.spk)
|
||||
- 破解脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv8/install_license)
|
||||
```
|
||||
|
||||
---
|
||||
### 恢复默认授权
|
||||
- 恢复脚本:
|
||||
```
|
||||
bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/license/remove_license)
|
||||
```
|
||||
---
|
||||
### 破解60授权效果
|
||||

|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
@@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#curl -o /tmp/install_license https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-armada38x/install_license; sh /tmp/install_license
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
cd /var/packages/SurveillanceStation/target/lib/
|
||||
cp ./libssutils.so ./libssutils.so_backup
|
||||
rm ./libssutils.so
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-armada38x/libssutils.so
|
||||
chown SurveillanceStation:SurveillanceStation ./libssutils.so
|
||||
chmod 0644 ./libssutils.so
|
||||
|
||||
cd /var/packages/SurveillanceStation/target/scripts
|
||||
cp ./S82surveillance.sh ./S82surveillance.sh_backup
|
||||
rm ./S82surveillance.sh
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/S82surveillance.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./S82surveillance.sh
|
||||
chmod 0755 ./S82surveillance.sh
|
||||
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/license.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./license.sh
|
||||
chmod 0777 ./license.sh
|
||||
|
||||
sleep 5
|
||||
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
@@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#curl -o /tmp/install_license https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-x86_64/install_license; sh /tmp/install_license
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
cd /var/packages/SurveillanceStation/target/lib/
|
||||
cp ./libssutils.so ./libssutils.so_backup
|
||||
rm ./libssutils.so
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-x86_64/libssutils.so
|
||||
chown SurveillanceStation:SurveillanceStation ./libssutils.so
|
||||
chmod 0644 ./libssutils.so
|
||||
|
||||
cd /var/packages/SurveillanceStation/target/scripts
|
||||
cp ./S82surveillance.sh ./S82surveillance.sh_backup
|
||||
rm ./S82surveillance.sh
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/S82surveillance.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./S82surveillance.sh
|
||||
chmod 0755 ./S82surveillance.sh
|
||||
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/license.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./license.sh
|
||||
chmod 0777 ./license.sh
|
||||
|
||||
sleep 5
|
||||
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
@@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#curl -o /tmp/install_license https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-x86_64_openvino/install_license; sh /tmp/install_license
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
cd /var/packages/SurveillanceStation/target/lib/
|
||||
cp ./libssutils.so ./libssutils.so_backup
|
||||
rm ./libssutils.so
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/SurveillanceStation-x86_64_openvino/libssutils.so
|
||||
chown SurveillanceStation:SurveillanceStation ./libssutils.so
|
||||
chmod 0644 ./libssutils.so
|
||||
|
||||
cd /var/packages/SurveillanceStation/target/scripts
|
||||
cp ./S82surveillance.sh ./S82surveillance.sh_backup
|
||||
rm ./S82surveillance.sh
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/S82surveillance.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./S82surveillance.sh
|
||||
chmod 0755 ./S82surveillance.sh
|
||||
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/license.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./license.sh
|
||||
chmod 0777 ./license.sh
|
||||
|
||||
sleep 5
|
||||
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
@@ -1,143 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Copyright (c) 2014 Synology Inc. All rights reserved.
|
||||
|
||||
SURVEILLANCE_INC_SCRP=/var/packages/SurveillanceStation/scripts/SurveillanceStationCommon
|
||||
. ${SURVEILLANCE_INC_SCRP}
|
||||
|
||||
SS_BIN_DIR="${SS_TARGET_DIR}/bin"
|
||||
SSCTL="${SS_BIN_DIR}/ssctl"
|
||||
SS_DBG_LOG_ROTATE_CONF="/usr/local/etc/logrotate.d/SurveillanceStation"
|
||||
|
||||
UpdateSSDbgLogRotateConf()
|
||||
{
|
||||
cat > $SS_DBG_LOG_ROTATE_CONF <<EOF
|
||||
/var/log/surveillance/surveillance.log /var/log/surveillance/ssnotification.log
|
||||
/var/log/surveillance/localdisplay.log /var/log/surveillance/ssrotate.log
|
||||
/var/log/surveillance/ssdevice.log {
|
||||
size 10M
|
||||
rotate 4
|
||||
missingok
|
||||
}
|
||||
EOF
|
||||
}
|
||||
|
||||
CheckPgsqlService()
|
||||
{
|
||||
if [ true == $(IsDSM7) ]; then
|
||||
echo $(IsSystemdUnitActivated "pqsql")
|
||||
else
|
||||
${SYNO_SERVICE_TOOL} --is-enabled pgsql > /dev/null 2>&1
|
||||
if [ $? -ne ${RET_SYNO_SERVICE_ENABLED} ]; then
|
||||
echo false
|
||||
else
|
||||
echo true
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Start()
|
||||
{
|
||||
SSDebugLog "Start Surveillance [$SURVEILLANCE_PKG_VERSION] begin."
|
||||
|
||||
local Ret
|
||||
|
||||
UpdateSSDbgLogRotateConf
|
||||
|
||||
if [ true == $(IsNonRecordingMode) -a true == $(IsServiceDataLinkAlive) ]; then
|
||||
rm -f ${SS_NON_RECORDING_FILE}
|
||||
fi
|
||||
|
||||
if [ false == $(IsNonRecordingMode) ]; then
|
||||
CheckToCreateRecDB
|
||||
Ret=$?
|
||||
if [ 0 -ne ${Ret} ]; then
|
||||
SSDebugLog "Failed to prepare share folder."
|
||||
UpdateNonRecordingMode
|
||||
fi
|
||||
|
||||
if [ ! -f ${SS_REC_DB} ]; then
|
||||
SSDebugLog "Recording db not found."
|
||||
UpdateNonRecordingMode
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${USE_SQLITE} == false ]; then
|
||||
if [ false == $(CheckPgsqlService) ]; then
|
||||
SSDebugLog "PGSQL is not enabled"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if [ false == $(HasSSPgsqlData) ]; then
|
||||
SSDebugLog "PGSQL db have not been created yet."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [ ! -f ${SS_SYSTEM_DB} ]; then
|
||||
SSDebugLog "System db not found."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
${SSCTL} start
|
||||
sh /var/packages/SurveillanceStation/target/scripts/license.sh > /dev/null 2>&1 & echo $!
|
||||
|
||||
SSDebugLog "Start Surveillance [$SURVEILLANCE_PKG_VERSION] end."
|
||||
}
|
||||
|
||||
Stop()
|
||||
{
|
||||
SSDebugLog "Stop Surveillance [$SURVEILLANCE_PKG_VERSION] begin."
|
||||
|
||||
if [ ${USE_SQLITE} == false ]; then
|
||||
if [ false == $(HasSSPgsqlData) ]; then
|
||||
echo "Surveillance: DB is stopped before Surveillance stops"
|
||||
fi
|
||||
else
|
||||
if [ ! -f ${SS_SYSTEM_DB} ]; then
|
||||
echo "Surveillance System DB not found."
|
||||
fi
|
||||
fi
|
||||
|
||||
${SSCTL} stop
|
||||
sudo pkill -9 -f /var/packages/SurveillanceStation/target/scripts/license.sh
|
||||
|
||||
SSDebugLog "Stop Surveillance [$SURVEILLANCE_PKG_VERSION] end"
|
||||
}
|
||||
|
||||
Restart()
|
||||
{
|
||||
Stop
|
||||
sleep 1
|
||||
Start
|
||||
}
|
||||
|
||||
TriggerSctrl()
|
||||
{
|
||||
${SSCTL} "$1" "$2" "$3"
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
PackageInfoGet
|
||||
|
||||
case $1 in
|
||||
"start")
|
||||
Start
|
||||
;;
|
||||
"stop")
|
||||
Stop
|
||||
;;
|
||||
"restart")
|
||||
Restart
|
||||
;;
|
||||
"trigger-ssctl")
|
||||
TriggerSctrl "$2" "$3" "$4"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 start|stop|restart|share_folder"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
main "$@"
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
while true
|
||||
do
|
||||
sleep 3600
|
||||
/var/packages/SurveillanceStation/target/bin/ssctl start
|
||||
|
||||
done
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/remove_license)
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
cd /var/packages/SurveillanceStation/target/lib/
|
||||
rm ./libssutils.so
|
||||
mv ./libssutils.so_backup ./libssutils.so
|
||||
|
||||
chown SurveillanceStation:SurveillanceStation ./libssutils.so
|
||||
chmod 0644 ./libssutils.so
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
|
||||
|
||||
cd /var/packages/SurveillanceStation/target/scripts
|
||||
rm ./S82surveillance.sh
|
||||
mv ./S82surveillance.sh_backup ./S82surveillance.sh
|
||||
chown SurveillanceStation:SurveillanceStation ./S82surveillance.sh
|
||||
chmod 0755 ./S82surveillance.sh
|
||||
|
||||
sudo pkill -9 -f /var/packages/SurveillanceStation/target/scripts/license.sh
|
||||
rm ./license.sh
|
||||
|
||||
sleep 5
|
||||
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/test/install_license)
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
cd /var/packages/SurveillanceStation/target/lib/
|
||||
cp ./libssutils.so ./libssutils.so_backup
|
||||
rm ./libssutils.so
|
||||
wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/test/libssutils.so
|
||||
chown SurveillanceStation:SurveillanceStation ./libssutils.so
|
||||
chmod 0644 ./libssutils.so
|
||||
|
||||
#cd /var/packages/SurveillanceStation/target/scripts
|
||||
#cp ./S82surveillance.sh ./S82surveillance.sh_backup
|
||||
#rm ./S82surveillance.sh
|
||||
#wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/S82surveillance.sh
|
||||
#chown SurveillanceStation:SurveillanceStation ./S82surveillance.sh
|
||||
#chmod 0755 ./S82surveillance.sh
|
||||
|
||||
#wget https://gitee.com/christianswift/surveillance-station-9/raw/main/lib/license/license.sh
|
||||
#chown SurveillanceStation:SurveillanceStation ./license.sh
|
||||
#chmod 0777 ./license.sh
|
||||
|
||||
sleep 5
|
||||
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Reference in new issue
Block a user