来吧兄弟,一起玩一起讨论!
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 gcafrk 于 2025-1-9 09:11 编辑
2025-01-09:经过几天观察,发现目前的PJ有一些问题,会导致SS无法运行!暂不推荐,等待后续更新。
系统:DS3622xs DSM 7.2.1-69057 Update6,Intel CPU
破解方法:
1)更新Surveillance Station 9.2.2-11575
2)将以下代码(见4)保存为SS-Patch.sh,或者直接下载附件(见5),并保存到群晖任意目录。
3)在【控制面板】-->【任务计划】中,新增【计划任务】-->【用户自定义的脚本】,以root权限手动运行,仅需一次就OK
4)脚本代码:
- #!/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
复制代码
5)脚本附件:
SS-Patch_922-x86_64.zip
(813 Bytes, 下载次数: 35)
|