make hostapd service depend on its interface
This commit is contained in:
parent
41ff5a1fe6
commit
fc4f726dd6
1 changed files with 2 additions and 1 deletions
|
@ -35,5 +35,6 @@ let
|
||||||
(defaults // params)));
|
(defaults // params)));
|
||||||
in longrun {
|
in longrun {
|
||||||
inherit name;
|
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}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue