Code Monkey home page Code Monkey logo

synd's Introduction

Tiny Synology DiskStation daemon

This very basic service was created for a Synology DiskStation DS214+ running Debian (Bookworm). It should also work on other Synology NAS products like the DS414 or the DS207.

The daemon will turn off the blinking LED at startup and shut the system down when the power button is pressed.

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

In order for the device to actually power off, we need to enable the qnap-poweroff driver. Also, to preserve the MAC addresses set by U-Boot, the mvneta driver must be compiled into the kernel.

The Linux kernel I cross-compile as follows using a 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

synd's People

Contributors

easybe avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.