资 源 简 介
qcontrol
Description
Many NAS devices have LEDs, buttons, a fan and a watchdog that are connected via a serial port or GPIOs and must be controlled from userspace. qcontrol was originally written for the QNAP TS-109/TS-209 but was designed in such a way that new device support can be easily added.
Installation
The Lua headers/libraries are required to build and run qcontrol. The kernel must support KEYBOARD_GPIO and INPUT_EVDEV. The following will extract and build qcontrol:
tar xzf qcontrol-0.4.1.tar.gzcd qcontrol-0.4.1make
Configuration
/etc/qcontrol.conf is written in Lua and you must register the modules you wish to use for your device and provide the necessary callback functions.
Supported devices:
* QNAP TS-109, TS-109 II, TS-209 and TS-209 II (ts209)
* QNAP TS-409 and TS-409U (ts409)