* Placing the kill_wpa_supplicant.sh script in its own recipe.
* Future commit will delete this script from wpa-supplicant to avoid
  duplication.
* Other than a new name the only other difference between this script and
  kill_wpa_supplicant.sh is that this script now also makes sure the dbus
  executable has the correct permission.
* Incorrect permission caused the demos to fail with a "There is no wpa
  supplicant interface"

Signed-off-by: Franklin S. Cooper Jr <[email protected]>
---
Version 2 changes:
Brand new patch. Apart of new patchset.


 .../wifi-direct-launcher/wifi-direct-launcher.sh   |   13 +++++++++++++
 .../wifi-direct-launcher_1.0.bb                    |   17 +++++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 
meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher/wifi-direct-launcher.sh
 create mode 100644 
meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher_1.0.bb

diff --git 
a/meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher/wifi-direct-launcher.sh
 
b/meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher/wifi-direct-launcher.sh
new file mode 100644
index 0000000..5a94d22
--- /dev/null
+++ 
b/meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher/wifi-direct-launcher.sh
@@ -0,0 +1,13 @@
+#check if the wpa_suppicant is already running
+#if it does, stop it.
+StationRunning=`ps | grep -c wpa_supplicant`
+if [ $StationRunning -eq 2 ]; then
+        killall wpa_supplicant
+fi
+
+# Correct dbus permission. Incorrect permission causes dbus (wifi direct demos)
+# dependent demos to fail. 
+chmod u+s /usr/libexec/dbus-daemon-launch-helper
+
+# start the application
+$*
diff --git 
a/meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher_1.0.bb
 
b/meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher_1.0.bb
new file mode 100644
index 0000000..28f5590
--- /dev/null
+++ 
b/meta-arago-extras/recipes-connectivity/wifi-direct-launcher/wifi-direct-launcher_1.0.bb
@@ -0,0 +1,17 @@
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+inherit allarch
+
+PR ="r0"
+
+SRC_URI = "file://wifi-direct-launcher.sh"
+
+S = "${WORKDIR}"
+
+do_install() {
+    install -d ${D}${sbindir}
+    install -m 755 ${WORKDIR}/wifi-direct-launcher.sh ${D}${sbindir}
+}
+
+FILES_${PN} = "/usr/sbin/wifi-direct-launcher.sh"
-- 
1.7.0.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to