fix(ap01): fix _one_ race condition when bridging the LAN

The remaining is hostapd notification that the WLAN interface is ready
to bridge.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-09-05 14:59:16 +02:00
parent dd25537352
commit 301fbcc26d
2 changed files with 11 additions and 8 deletions

View file

@ -119,11 +119,14 @@ rec {
services.bridge = svc.bridge.members.build { services.bridge = svc.bridge.members.build {
primary = services.int; primary = services.int;
members = with config.hardware.networkInterfaces; [ members = {
lan lan.member = config.hardware.networkInterfaces.lan;
# wlan0 wlan1 = {
wlan1 member = config.hardware.networkInterfaces.wlan1;
]; # Bridge only once hostapd is ready.
dependencies = [ config.services.hostap-2 ];
};
};
}; };
services.resolvconf = oneshot rec { services.resolvconf = oneshot rec {
@ -152,7 +155,7 @@ rec {
interface = config.services.int; interface = config.services.int;
dependencies = [ dependencies = [
config.services.hostname config.services.hostname
config.services.bridge config.services.bridge.components.lan
]; ];
}; };

View file

@ -131,9 +131,9 @@
"url": "https://git.dgnum.eu/DGNum/liminix.git" "url": "https://git.dgnum.eu/DGNum/liminix.git"
}, },
"branch": "main", "branch": "main",
"revision": "4ff772639f9bb5d079a50b2b69f3ddc9053f2e9a", "revision": "0fb671023c0571d936a568721c67819a23cf63c0",
"url": null, "url": null,
"hash": "1jh2115ajh26362fazkmyhvv6zvp5z3yjynl91kgsvvld936169c" "hash": "0d7hyl89049flqvxzpvj938ma30fi3y58y4z6gjj2038v2vsd2f1"
}, },
"linkal": { "linkal": {
"type": "Git", "type": "Git",