]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
hostapd: Make systemd unit file independent from network.service.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 May 2012 12:16:16 +0000 (12:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 May 2012 12:20:37 +0000 (12:20 +0000)
Within the startup of network.service, hostapd needs to be
started which will cause a deadlock.
This patch removes the requirement of hostapd, that the network
service has already to be up.

hostapd/hostapd.nm
hostapd/systemd/hostapd@.service

index 507c0ea6467da0f313978ed918e4109e2a084171..a5de902d88e77dd17fe75c33804b405e8a3265eb 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = hostapd
 version    = 0.7.3
-release    = 1
+release    = 2
 
 groups     = Networking/Tools
 url        = http://hostap.epitest.fi/hostapd/
@@ -46,7 +46,6 @@ end
 
 packages
        package %{name}
-       end
 
        package %{name}-debuginfo
                template DEBUGINFO
index 2cff6d9c758fbfc447bff71c605d4e222b7b985c..748cb0ea51b06782bd91cefacad3db5273489c20 100644 (file)
@@ -8,8 +8,7 @@
 [Unit]
 Description=WLAN AP on %I
 BindTo=dev-%I.device
-After=dev-%I.device network.service
-Requires=network.service
+After=dev-%I.device
 
 [Service]
 ExecStart=/usr/bin/hostapd -dd -P /run/network/hostapd/%I/pid /run/network/hostapd/%I/config