diff options
-rw-r--r-- | recipes-connectivity/wpa-supplicant/files/wpa_supplicant.service | 12 | ||||
-rw-r--r-- | recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend | 16 |
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 + +} + |