]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
wpa_supplicant: Add systemd unit file.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Oct 2012 17:40:04 +0000 (17:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Oct 2012 17:40:04 +0000 (17:40 +0000)
wpa_supplicant/systemd/wpa_supplicant@.service [new file with mode: 0644]
wpa_supplicant/wpa_supplicant.nm

diff --git a/wpa_supplicant/systemd/wpa_supplicant@.service b/wpa_supplicant/systemd/wpa_supplicant@.service
new file mode 100644 (file)
index 0000000..b3bd340
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=wpa_supplicant for %I.
+
+[Service]
+ExecStartPre=/usr/lib/network/helpers/wpa_supplicant-config-helper create %I
+ExecStart=/usr/lib/network/helpers/wpa_supplicant %I
+ExecStopPost=/usr/lib/network/helpers/wpa_supplicant-config-helper remove %I
+PIDFile=/run/wpa_supplicant-%I.pid
+Restart=on-failure
+UtmpIdentifier=%I
+KillMode=process
index 92fac58eaa620b9cc42f44219b447df7a06ae988..41f2ad6374eec1c52affe77d89de70d9f605f120 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = wpa_supplicant
 version    = 1.0
-release    = 1
+release    = 2
 
 groups     = Sytem/Base
 url        = http://hostap.epitest.fi/releases/
@@ -53,6 +53,8 @@ end
 
 packages
        package %{name}
+               requires += network >= 1:005
+       end
 
        package %{name}-debuginfo
                template DEBUGINFO