liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fc4f726dd69a95c09fb6574d0b18ded8f729986e
parent 41ff5a1fe699293931d58023e37802367f4f24ce
Author: Daniel Barlow <dan@telent.net>
Date:   Wed,  1 Mar 2023 18:13:54 +0000

make hostapd service depend on its interface

Diffstat:
Mpkgs/liminix-tools/networking/hostapd.nix | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkgs/liminix-tools/networking/hostapd.nix b/pkgs/liminix-tools/networking/hostapd.nix @@ -35,5 +35,6 @@ let (defaults // params))); in longrun { inherit name; - run = "${hostapd}/bin/hostapd -d -i ${interface.device} -P /run/hostapd.pid -S ${conf}"; + dependencies = [ interface ]; + run = "${hostapd}/bin/hostapd -d -i ${interface.device} -P /run/${name}.pid -S ${conf}"; }