]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wdctl: always query device node when sysfs is unavailable
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 4 Jun 2024 19:06:49 +0000 (21:06 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 4 Jun 2024 19:06:49 +0000 (21:06 +0200)
commit8bd4d796f4d6a0480c0744302ca40fa5ad5de070
treecbcb316af686ca1600e4440d076c88af99f8a19a
parentd7282ef8b3b030bbecee4264ae7674e0bf08d52c
wdctl: always query device node when sysfs is unavailable

When there is no sysfs at all for the watchdog, fall back to reading
from the device node.
This is also useful if the legacy compat /dev/watchdog device which
never has a sysfs interface.

Closes: #3073
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
sys-utils/wdctl.c