summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am12
-rw-r--r--scripts/fi.epitest.hostap.WPASupplicant.conf10
-rw-r--r--scripts/fi.epitest.hostap.WPASupplicant.service.in4
3 files changed, 24 insertions, 2 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 1247398f..b860d5bd 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -3,7 +3,15 @@ initdir = $(sysconfdir)/init.d
init_SCRIPTS = connman
-DISTCLEANFILES = $(init_SCRIPTS)
+dbusdir = $(sysconfdir)/dbus-1/system.d
+
+dbus_DATA = fi.epitest.hostap.WPASupplicant.conf
+
+servicedir = $(datadir)/dbus-1/system-services
+
+service_DATA = fi.epitest.hostap.WPASupplicant.service
+
+DISTCLEANFILES = $(init_SCRIPTS) $(service_DATA)
scriptdir = $(libdir)/connman/scripts
@@ -15,6 +23,6 @@ dhclient_script_LDADD = @DBUS_LIBS@
AM_CFLAGS = @DBUS_CFLAGS@
-EXTRA_DIST = $(script_DATA)
+EXTRA_DIST = $(script_DATA) $(dbus_DATA)
MAINTAINERCLEANFILES = Makefile.in
diff --git a/scripts/fi.epitest.hostap.WPASupplicant.conf b/scripts/fi.epitest.hostap.WPASupplicant.conf
new file mode 100644
index 00000000..fa7afca0
--- /dev/null
+++ b/scripts/fi.epitest.hostap.WPASupplicant.conf
@@ -0,0 +1,10 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow own="fi.epitest.hostap.WPASupplicant"/>
+ <allow send_destination="fi.epitest.hostap.WPASupplicant"/>
+ <allow send_interface="fi.epitest.hostap.WPASupplicant"/>
+ </policy>
+</busconfig>
diff --git a/scripts/fi.epitest.hostap.WPASupplicant.service.in b/scripts/fi.epitest.hostap.WPASupplicant.service.in
new file mode 100644
index 00000000..cdd2a030
--- /dev/null
+++ b/scripts/fi.epitest.hostap.WPASupplicant.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=fi.epitest.hostap.WPASupplicant
+Exec=@WPASUPPLICANT@ -u
+User=root