services: hostapd: Use package from configuration.

* gnu/services/networking.scm (hostapd-shepherd-services): Replace
'hostapd' by the package specified in the configuration.
This commit is contained in:
Brice Waegeneire 2020-05-27 18:07:14 +02:00
parent 8a0dc5f1bf
commit 62a8d487d6
No known key found for this signature in database
GPG key ID: A94903A166A18FAE

View file

@ -1591,7 +1591,8 @@ (define* (hostapd-shepherd-services config #:key (requirement '()))
(requirement `(user-processes ,@requirement))
(documentation "Run the hostapd WiFi access point daemon.")
(start #~(make-forkexec-constructor
(list #$(file-append hostapd "/sbin/hostapd")
(list #$(file-append (hostapd-configuration-package config)
"/sbin/hostapd")
#$(hostapd-configuration-file config))
#:log-file "/var/log/hostapd.log"))
(stop #~(make-kill-destructor)))))