Added first boot service for AGL
[AGL/meta-agl.git] / meta-agl / recipes-devtools / run-agl-postinsts / run-agl-postinsts / run-agl-postinsts.service
diff --git a/meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service b/meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service
new file mode 100644 (file)
index 0000000..d1b5063
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=Run pending agl postinsts
+DefaultDependencies=no
+After=#SYSTEMD_SERVICE_AFTER#
+ConditionPathExistsGlob=#SYSCONFDIR#/agl-postinsts
+
+[Service]
+Type=oneshot
+ExecStart=#SBINDIR#/run-agl-postinsts
+ExecStartPost=#BASE_BINDIR#/systemctl disable run-agl-postinsts.service
+RemainAfterExit=No
+TimeoutSec=0
+
+[Install]
+WantedBy=multi-user.target