aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Proca <florentin.proca@windriver.com>2012-05-09 12:29:49 +0300
committerFlorin Sarbu <florin.sarbu@windriver.com>2012-05-16 15:46:24 +0300
commitb8e8c65c7ebcc998a834028405e282c10badfd55 (patch)
tree595e5714e038c860e3c9e0b3596e2c47bf50a7c0
parentd00382fca84ec22a7022c14900c477ba7ed5c74c (diff)
downloadmeta-ivi-b8e8c65c7ebcc998a834028405e282c10badfd55.tar.gz
meta-ivi-b8e8c65c7ebcc998a834028405e282c10badfd55.tar.bz2
meta-ivi-b8e8c65c7ebcc998a834028405e282c10badfd55.zip
wpa-supplicant: add service file for systemd usage
wpa-supplicant did not have a service file for systemd and the wpa daemon could not be launched by systemctl wpa_supplicant.service file was taken from Fedora 16 distro Signed-off-by: Sebastian Proca <Florentin.Proca@windriver.com>
-rw-r--r--recipes-connectivity/wpa-supplicant/files/wpa_supplicant.service12
-rw-r--r--recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend16
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes-connectivity/wpa-supplicant/files/wpa_supplicant.service b/recipes-connectivity/wpa-supplicant/files/wpa_supplicant.service
new file mode 100644
index 0000000..67374d1
--- /dev/null
+++ b/recipes-connectivity/wpa-supplicant/files/wpa_supplicant.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=WPA Supplicant daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+EnvironmentFile=-/etc/sysconfig/wpa_supplicant
+ExecStart=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf $INTERFACES $DRIVERS -B -u $OTHER_ARGS
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend b/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend
new file mode 100644
index 0000000..7f40119
--- /dev/null
+++ b/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend
@@ -0,0 +1,16 @@
+# Find "files" directory
+FILESEXTRAPATHS := "${THISDIR}/files"
+
+SRC_URI_append_vexpressa9 = " file://wpa_supplicant.service"
+
+PACKAGES =+ "${PN}-systemd"
+
+FILES_${PN}-systemd = "/lib/systemd/system/"
+
+do_install_append() {
+
+ mkdir -p ${D}/lib/systemd/system
+ install -m 644 ${WORKDIR}/wpa_supplicant.service ${D}/lib/systemd/system
+
+}
+