synd
1.0.0
Este servicio muy básico fue creado para una disco singular DS214+ Running Debian (Werworm). También debe funcionar en otros productos NAS de Synology como el DS414 o el DS207.
El demonio apagará el LED parpadeante al inicio y cerrará el sistema hacia abajo cuando se presione el botón de encendido.
Instalación:
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
Para que el dispositivo realmente se apague, necesitamos habilitar el controlador qnap-poweroff . Además, para preservar las direcciones MAC establecidas por U-Boot, el controlador mvneta debe compilarse en el núcleo.
El kernel de Linux I Cross Comprile de la siguiente manera usando una imagen 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