From a611c3cd4dfcc5bc4c69a7bd5f94e52513ce9b05 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Fri, 29 Aug 2014 20:20:09 +0200
Subject: yocto: add systemd slide

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 distribution/yocto-advanced/pres_yocto-advanced.tex | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'distribution/yocto-advanced/pres_yocto-advanced.tex')

diff --git a/distribution/yocto-advanced/pres_yocto-advanced.tex b/distribution/yocto-advanced/pres_yocto-advanced.tex
index 51bd7b5..5a56ea4 100644
--- a/distribution/yocto-advanced/pres_yocto-advanced.tex
+++ b/distribution/yocto-advanced/pres_yocto-advanced.tex
@@ -956,6 +956,19 @@ do_install() {
 \end{verbatim}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{adding a bootscript}
+\begin{itemize}
+	\item add 'systemd' to DISTRO\_FEATURES
+	\item inherit from systemd.bbclass
+	\item your package needs to set SYSTEMD\_SERVICE variable; e.g.
+		\begin{verbatim}
+SYSTEMD_SERVICE_${PN} = "connman.service"
+		\end{verbatim}
+	\item to disable the service, set  SYSTEMD\_AUTO\_ENABLE to 'disable'
+\end{itemize}
+\end{frame}
+
 \begin{frame}[fragile]
 \frametitle{user and group configuration}
 use this in an image recipe:
-- 
cgit v1.2.3

