make hostapd service depend on its interface

This commit is contained in:
Daniel Barlow 2023-03-01 18:13:54 +00:00
parent 41ff5a1fe6
commit fc4f726dd6

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