reopen 412179 tags 412179 patch thanks Hi everyone,
as the D-Bus system activation support [1] has landed in dbus-1.1.2, which will be uploaded to the archive (very) soon, it's finally clear, how the wpa_supplicant dbus support is supposed to work. You have to install the service file into /usr/share/dbus-1/system-service and the name of the file must correspond to the service bus name. In addition, the service has to be started by root to work properly. The attached patch fixes these issues. Whenever a D-Bus client (such as NM 0.7) will try to access fi.epitest.hostap.WPASupplicant, and the D-Bus name is not yet taken, the service will be autostarted by dbus. This also makes any init scripts unnecessary. It would be great if you could include this patch in your next revision. Cheers, Michael [1] http://webcvs.freedesktop.org/dbus/dbus/doc/system-activation.txt?view=co -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff --git a/debian/dbus-wpa_supplicant.service b/debian/dbus-wpa_supplicant.service index aa97593..a9ce1ec 100644 --- a/debian/dbus-wpa_supplicant.service +++ b/debian/dbus-wpa_supplicant.service @@ -1,3 +1,4 @@ [D-BUS Service] Name=fi.epitest.hostap.WPASupplicant Exec=/sbin/wpa_supplicant -u +User=root diff --git a/debian/rules b/debian/rules index 8e4375e..5f8c945 100755 --- a/debian/rules +++ b/debian/rules @@ -33,7 +33,7 @@ install/wpasupplicant:: install --mode=644 -D $(WPADIR)dbus-wpa_supplicant.conf \ debian/wpasupplicant/etc/dbus-1/system.d/wpa_supplicant.conf install --mode=644 -D debian/dbus-wpa_supplicant.service \ - debian/wpasupplicant/usr/share/dbus-1/services/wpa_supplicant.service + debian/wpasupplicant/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service clean:: $(MAKE) -C $(WPADIR) clean
signature.asc
Description: OpenPGP digital signature