diff options
Diffstat (limited to '')
-rw-r--r-- | wd/wdd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7,7 +7,8 @@ #include <sys/stat.h> #include <fcntl.h> -const char dev_wd_str[] = "/dev/watchdog"; +const char dev_wd_str[] = "/dev/watchdog"; /* standard entry */ +const char dev_misc_str[] = "/dev/misc/watchdog"; /* devfs entry */ const char root_str[] = "/"; /* @@ -103,6 +104,8 @@ int main (int argc, char **argv) { while (1) { if (dev == -1) dev = open(dev_wd_str, O_RDWR); + if (dev == -1) + dev = open(dev_misc_str, O_RDWR); if ((dev != -1) && (write(dev, dev_wd_str, 1) != 1)) { /* write error, we'll restart */ close(dev); |