From fc4f726dd69a95c09fb6574d0b18ded8f729986e Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 1 Mar 2023 18:13:54 +0000 Subject: [PATCH] make hostapd service depend on its interface --- pkgs/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 index 62a3942..83acc48 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}"; }