diff --git a/pkgs/liminix-tools/networking/hostapd.nix b/pkgs/liminix-tools/networking/hostapd.nix index 62a39428..83acc48c 100644 --- 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}"; }