synd
1.0.0
Ce service très basique a été créé pour une Synology Diskstation DS214 + Running Debian (Bookworm). Il devrait également fonctionner sur d'autres produits Synology NAS comme le DS414 ou le DS207.
Le démon éteindra la LED clignotante au démarrage et fermera le système lorsque le bouton d'alimentation est appuyé.
Installation:
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
Pour que l'appareil puisse réellement s'éteindre, nous devons activer le pilote qnap-poweroff . De plus, pour préserver les adresses MAC définies par U-Boot, le pilote mvneta doit être compilé dans le noyau.
Le noyau Linux I CROSS-compile comme suit à l'aide d'une image Docker:
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