SYSTEMD-CONF: manage watchdog as addons
Signed-off-by: Priouzeau Christophe <christophe.priouzeau@st.com>
This commit is contained in:
1 parent
f9093185ec
commit
a514bcbe7a
3 files changed
+9
-35
No files matched your search
@@ -0,0 +1,9 @@
|
||||
do_install_append_stm32mpcommon() {
|
||||
# enable watchdog on systemd configuration
|
||||
if ${@bb.utils.contains('MACHINE_FEATURES','watchdog','true','false',d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system.conf.d/
|
||||
echo "[Manager]" > ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
|
||||
echo "RuntimeWatchdogSec=120" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
|
||||
echo "ShutdownWatchdogSec=2min" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user