summaryrefslogtreecommitdiff
path: root/package/apcupsd
AgeCommit message (Collapse)Author
2025-01-09package: apcupsd: Fix for compiling with gcc-13Phil Sutter
Kudos to Fabrice Fontaine for coming up with this: https://lore.kernel.org/buildroot/20240113100654.85904-1-fontaine.fabrice@gmail.com/ Signed-off-by: Phil Sutter <phil@nwl.cc>
2025-01-06package: Port apcupsdPhil Sutter
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>