wpa-supplicant: Prepare >=0.6 for dbus system activation
PATCH 1/1 wpa-supplicant: Prepare >=0.6 for dbus system activation
Hello.
To get wpa-supplicant get started via dbus system activation I need the following patch.
The renaming of the service file is something must do as it does not get picked up correctly without it.
http://lists.shmoo.com/pipermail/hostap/2007-December/016960.html
For the path issue we have two options a) patch the service file like I did here or b) install wpa-supplicant into /sbin as debian does it for example.
regards
Stefan Schmidt
From 638dc47abc7157500630cccefe10521378771364 Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <[email protected]>
Date: Wed, 25 Mar 2009 17:37:17 +0100
Subject: [PATCH 1/2] wpa-supplicant: Prepare >=0.6 for dbus system activation
* Fix binary path in service file
* Install service under the right name taht it gets detected and used correctly
* Bump PR's
--- .../files/service-activation-binary-path.patch | 10 ++++++++++ packages/wpa-supplicant/wpa-supplicant-0.6.inc | 7 +++++-- packages/wpa-supplicant/wpa-supplicant_0.6.0.bb | 2 +- packages/wpa-supplicant/wpa-supplicant_0.6.3.bb | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-)
packages/wpa-supplicant/files/service-activation-binary-path.patch new file +10 -0
@@ -0,0 +1,10 @@ +Index: wpa_supplicant-0.6.3/wpa_supplicant/dbus-wpa_supplicant.service +=================================================================== +--- wpa_supplicant-0.6.3.orig/wpa_supplicant/dbus-wpa_supplicant.service 2009-03-25 12:12:38.000000000 +0100 ++++ wpa_supplicant-0.6.3/wpa_supplicant/dbus-wpa_supplicant.service 2009-03-25 12:12:47.000000000 +0100 +@@ -1,4 +1,4 @@ + [D-BUS Service] + Name=fi.epitest.hostap.WPASupplicant +-Exec=/sbin/wpa_supplicant -u ++Exec=/usr/sbin/wpa_supplicant -u + User=root
packages/wpa-supplicant/wpa-supplicant-0.6.inc +5 -2
@@ -13,7 +13,9 @@ DEFAULT_PREFERENCE = "-2" SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \ file://defconfig-0.6.0-gnutls \ file://ifupdown.sh \ - file://functions.sh" + file://functions.sh \ + file://service-activation-binary-path.patch;patch=1;pnum=2 \ + " # file://gnutlsfix.patch;patch=1 \
@@ -63,7 +65,8 @@ do_install () { install -d ${D}/${sysconfdir}/dbus-1/system.d install -m 644 ${S}/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d install -d ${D}/${datadir}/dbus-1/system-services - install -m 644 ${S}/dbus-wpa_supplicant.service ${D}/${datadir}/dbus-1/system-services + install -m 644 ${S}/dbus-wpa_supplicant.service ${D}/${datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service + ln -s /etc/wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-pre-up.d/wpasupplicant ln -s /etc/wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-post-down.d/wpasupplicant
packages/wpa-supplicant/wpa-supplicant_0.6.0.bb +1 -1
@@ -1,3 +1,3 @@ require wpa-supplicant-0.6.inc -PR = "r2" +PR = "r3"
packages/wpa-supplicant/wpa-supplicant_0.6.3.bb +1 -1
@@ -1,3 +1,3 @@ require wpa-supplicant-0.6.inc -PR = "r2" +PR = "r3"
Signature · 1 line
1.6.2.1
Quoted 5 lines · Stefan Schmidt
Hello.
To get wpa-supplicant get started via dbus system activation I need the following patch.
Quoted 8 lines
The renaming of the service file is something must do as it does not get picked up correctly without it.
http://lists.shmoo.com/pipermail/hostap/2007-December/016960.htmlFor the path issue we have two options a) patch the service file like I did here or b) install wpa-supplicant into /sbin as debian does it for example.
This is already fixed in OE. Koen and I applied fixes months ago.
Graeme
Hello.
Quoted 2 lines · Graeme Gregory
Quoted 1 line
This is already fixed in OE. Koen and I applied fixes months ago.
Great, then just ignore it.
regards
Stefan Schmidt