1 SUMMARY = "Systemd synchronization script"
3 Systemd synchronization script \
4 reload daemon at the first boot. \
7 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
9 #This script should be the last to be execute at the first boot
10 POST_INSTALL_LEVEL = "90"
11 POST_INSTALL_SCRIPT ?= "${POST_INSTALL_LEVEL}-${PN}.sh"
14 install -d ${D}/${sysconfdir}/agl-postinsts
15 cat > ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT} <<EOF
17 echo "restart daemon ..."
19 systemctl daemon-reload
20 if [ \$? -ne 0 ]; then
23 systemctl restart sockets.target
24 if [ \$? -ne 0 ]; then
28 if [ \$result -eq 0 ]; then
29 echo "restart daemon OK"
32 echo "restart daemon failed"
36 chmod a+x ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT}
39 FILES_${PN} = "${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT}"