]> 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)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Jun 2024 10:03:17 +0000 (12:03 +0200)
commit533aabc5def9f20633678a13aea66f2e749cb272
tree489518194a68958e07523b49281d62cf0404cd29
parent023096e3727fd5fc026e07703e2f2f93e1baa419
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>
(cherry picked from commit 8bd4d796f4d6a0480c0744302ca40fa5ad5de070)
sys-utils/wdctl.c