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 994e593d3b
commit 9bf83a60fe
2 changed files with 11 additions and 8 deletions

View file

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

View file

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