synd
1.0.0
这项非常基本的服务是为Synology Diskstation DS214+运行Debian(Bookworm)创建的。它还应该在其他Synology NAS产品(例如DS414或DS207)上使用。
守护程序将在启动时关闭闪烁的LED,并在按下电源按钮时关闭系统。
安装:
git clone https://github.com/easybe/synd.git /usr/local/synd
pip3 install -r /usr/local/synd/requirements.txt
systemctl enable /usr/local/synd/synd.service
systemctl start synd
为了使设备实际关闭电源,我们需要启用qnap-poweroff驱动程序。此外,要保留U-Boot设置的MAC地址,必须将mvneta驱动程序编译到内核中。
Linux内核I使用Docker Image交叉编译如下:
apt source linux
cd linux-*
cp /path/to/old/config .config
sed -i 's/CONFIG_MVNETA=m/CONFIG_MVNETA=y/' .config
sed -i 's/.*CONFIG_POWER_RESET_QNAP.*/CONFIG_POWER_RESET_QNAP=y/' .config
sed -i 's/CONFIG_SYSTEM_TRUSTED_KEYS=.*/CONFIG_SYSTEM_TRUSTED_KEYS=""/' .config
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export LOCALVERSION=-armmp-lpae
export KDEB_PKGVERSION=$(make kernelversion)-1+custom
make oldconfig
make -j $(nproc) bindeb-pkg