watchdog: add support for starting/stopping kernel watchdog
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 19 Jun 2017 09:14:27 +0000 (11:14 +0200)
committerHans Dedecker <hans.dedecker@technicolor.com>
Thu, 22 Jun 2017 15:09:01 +0000 (17:09 +0200)
commite5e99c463e0ef3e4ad7ba8cea4125183073fabb1
treeed8240ee4bb18d3909b24b6e91bd5be38fa0bb0b
parent453116e08e6a9349374bbff427b75f57ce5387c9
watchdog: add support for starting/stopping kernel watchdog

Extend the ubus watchdog cmd with the parameter magicclose; when set and
in case the stopped parameter is enabled the kernel watchdog will be stopped
by first sending the magic character 'V' followed by a close of the watchdog
fd. In case stopped is set to disabled the watchdog fd will be created again.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Acked-by: John Crispin <john@phrozen.org>
system.c
watchdog.c
watchdog.h