make hostapd service depend on its interface

module-based-network
Daniel Barlow 2023-03-01 18:13:54 +00:00
parent 41ff5a1fe6
commit fc4f726dd6
1 changed files with 2 additions and 1 deletions

View File

@ -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}";
}