diff options
author | Phil Sutter <phil@nwl.cc> | 2025-01-05 01:18:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-01-06 11:53:44 +0100 |
commit | d7452d1a846d5e419f3907819f45e2e0c1cecff2 (patch) | |
tree | 6f6cf4dd0f6c138ba44f399388877d4fde5aff5b /target/linux | |
parent | 8bda2592cdf86248206f150625dd065d74befef7 (diff) |
package: Port apcupsd
For USB-connected UPSs, kernel's USB_HIDDEV option is required as the
daemon communicates via /dev/usb/hiddev* raw HID devices. Therefore make
USB_HID select USB_HIDDEV (shouldn't hurt much on other systems) and
select the former if the package is enabled.
Ship a config which defaults to USB-based UPSs as they are probably the
most common ones. Also install a minimal apccontrol which merely
remounts relevant filesystems read-only in case of near blackout. The
core OpenADK fs layout should tolerate pulling the plug as-is already.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/config/Config.in.input | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/config/Config.in.input b/target/linux/config/Config.in.input index 0d7800c92..7d4932e41 100644 --- a/target/linux/config/Config.in.input +++ b/target/linux/config/Config.in.input @@ -115,6 +115,7 @@ config ADK_LINUX_KERNEL_USB_HID select ADK_LINUX_KERNEL_HID select ADK_LINUX_KERNEL_HID_SUPPORT select ADK_LINUX_KERNEL_HID_GENERIC + select ADK_LINUX_KERNEL_USB_HIDDEV depends on ADK_TARGET_WITH_USB \ || ADK_TARGET_GENERIC \ || ADK_TARGET_QEMU |