]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
watchdog: fix init script for sysvinit
authorChen Qi <Qi.Chen@windriver.com>
Wed, 13 Jun 2018 07:58:23 +0000 (15:58 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jun 2018 09:59:33 +0000 (10:59 +0100)
commita31f8dd34e8ea34dfb087ed464575aa390ece09b
tree733f75a461a6d015cc54c62289cc9212b27cd50b
parent41e4d728ef92586e2714fa0c136b838c3fda051e
watchdog: fix init script for sysvinit

The current init script is installed from source with redhat style.
It does not get configuration from /etc/default/watchdog. We should use
debian style init script.

Write our own script just like what wd_keepalive does.
Also, in the init script, we check the existence of /dev/watchdog to
determine whether to start the daemon or not.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/watchdog/watchdog/watchdog-init.patch [deleted file]
meta/recipes-extended/watchdog/watchdog/watchdog.init [new file with mode: 0644]
meta/recipes-extended/watchdog/watchdog_5.15.bb