From b3dd29d1b878865102c5cb366dd3e814ce043cb9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 6 Jun 2019 11:17:13 +0200 Subject: wdctl; read from /sys if necessary The device can be inaccessible for non-root user or busy (already used by another process). In this case it seems better to read information from /sys. Note that /sys does not provide struct watchdog_info.options, so we cannot print list of supported watchdog features. Addresses: https://github.com/karelzak/util-linux/issues/804 Signed-off-by: Karel Zak --- sys-utils/wdctl.8 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys-utils/wdctl.8') diff --git a/sys-utils/wdctl.8 b/sys-utils/wdctl.8 index 7edf80866..efd8b5917 100644 --- a/sys-utils/wdctl.8 +++ b/sys-utils/wdctl.8 @@ -14,6 +14,10 @@ Show hardware watchdog status. The default device is If more than one device is specified then the output is separated by one blank line. .PP +If the device is already used or user has no permissions to read from the device than +.B wdctl +reads data from sysfs. In this case information about supported features (flags) might be missing. +.PP Note that the number of supported watchdog features is hardware specific. .SH OPTIONS .TP -- cgit v1.2.3-55-g7522