一、前言
如果不是挖矿过的猫盘升级dsm7.0还是可以的,dsm7.0界面反应速度比6.0快,不考虑第三方套件可以升级。
此方法支持硬盘休眠与完美关机。但是建议不要休眠,因为黑群设备会频繁唤醒会伤害硬盘。
搞了个自动配置脚本,2步快速执行,脚本对zfs和btrfs启动的支持有问题,请勿用。
wgethttps://fastly.jsdelivr.net/gh/jiangcuo/foxi/gvtg.sh
bash gvtg.sh
终于搞到了一台实验机子。本次实验环境为
二、具体操作
(1)关闭高占用率服务、开启硬盘休眠和led灯 - 休眠时绿色闪光,唤醒蓝色常亮,网络异常红色闪光。 添加到开机任务:
# save /etc/debian-version
# (which will be something like kali-rolling)
DV_SAVE=$(cat /etc/debian_version)
# pretend we're Debian buster
echo buster | sudo tee /etc/debian_version >/dev/null
# follow ZeroTier install instructions from:
# https://www.zerotier.com/download/
# for example, if you don't care about checking gpg signatures:
curl -s https://install.zerotier.com | sudo bash
# restore /etc/debian-version
echo $DV_SAVE | sudo tee /etc/debian_version >/dev/null
复制成功
bash
mount-o bind /dev/null /var/log/scemd.log||truesystemctl stop pkg-scsit-monitor.servicemkdir-p /tmp/scriptscat>/tmp/scripts/ledfan.sh<<EOF#!/bin/shif [ ! -d /sys/class/gpio/gpio450 ] ; thenecho 450 > /sys/class/gpio/exportfiecho out > /sys/class/gpio/gpio450/directioni2cset -y -f 0 0x45 0x00 0x55i2cset -y -f 0 0x45 0x01 0x01i2cset -y -f 0 0x45 0x30 0x07while truedo#Detect network connection ping -W 1 -c 1 Lenovo > /dev/null 2>&1if [$?-eq 0 ];then i2cset -y -f 0 0x45 0x34 0x00else i2cset -y -f 0 0x45 0x31 0x73 i2cset -y -f 0 0x45 0x34 255fisata="\$(hdparm -C /dev/sda|grep'drive'|awk'{print \$4}')"if [ \$sata= standby ];theni2cset -y -f 0 0x45 0x36 0i2cset -y -f 0 0x45 0x32 0x73 #呼吸i2cset -y -f 0 0x45 0x35 200echo 0 > /sys/class/gpio/gpio450/value fiif [ \$sata= active/idle ];thensata_temp="\$(smartctl -a /dev/hda -d ata|sed-n '/Temperature_Celsius/p'|awk'{print \$10}')"i2cset -y -f 0 0x45 0x35 0i2cset -y -f 0 0x45 0x33 0x03 #常亮i2cset -y -f 0 0x45 0x36 150 #Becho 1 > /sys/class/gpio/gpio450/valuefisleep 30doneEOFbash/tmp/scripts/ledfan.sh
(2)关机熄灭LED关闭风扇。添加到关机任务:
bash
i2cset -y -f 0 0x45 0x30 0x00echo0>/sys/class/gpio/gpio450/value
(3)黑群晖DSM7.0/DSM7.01控制面板-信息中心首页显示空白的解决方法
添加root计划任务运行一次即可:
bash
sed-i's/supportsystempwarning="yes"/supportsystempwarning="no"/g'/etc.defaults/synoinfo.confsed-i's/supportsystemperature="yes"/supportsystemperature="no"/g'/etc.defaults/synoinfo.conf
全部完成后重启猫盘