1 SUMMARY = "Systemd synchronization script"
3 Systemd synchronization script \
4 reload daemon at the first boot. \
8 #This script should be the last to be execute at the first boot
9 POST_INSTALL_LEVEL = "90"
10 POST_INSTALL_SCRIPT ?= "${POST_INSTALL_LEVEL}-${PN}.sh"
13 install -d ${D}/${sysconfdir}/agl-postinsts
14 cat > ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT} <<EOF
16 echo "restart daemon ..."
18 systemctl daemon-reload
19 if [ \$? -ne 0 ]; then
22 systemctl restart sockets.target
23 if [ \$? -ne 0 ]; then
27 if [ \$result -eq 0 ]; then
28 echo "restart daemon OK"
31 echo "restart daemon failed"
35 chmod a+x ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT}
38 FILES_${PN} = "${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT}"