]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wdctl: read options from sysfs
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 19 Dec 2022 20:24:54 +0000 (20:24 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 19 Dec 2022 21:29:51 +0000 (21:29 +0000)
sys-utils/wdctl.c

index b5c9c406804ee9ce0341741755995ffa10bec872..e5f38dbdc8333a1607f2a0c4a138a87314855e0a 100644 (file)
@@ -551,6 +551,7 @@ static int read_watchdog_from_sysfs(struct wd_device *wd)
 
        ul_path_read_buffer(sys, (char *) wd->ident.identity, sizeof(wd->ident.identity), "identity");
        ul_path_read_u32(sys, &wd->ident.firmware_version, "fw_version");
+       ul_path_scanf(sys, "options", "%x", &wd->ident.options);
 
        ul_path_scanf(sys, "status", "%x", &wd->status);
        ul_path_read_u32(sys, &wd->bstatus, "bootstatus");