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