wifi: Fix wifi_apply failing on boot
This commit is contained in:
parent
28ab3b0665
commit
6570e71eca
3 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
"""
|
||||
Add the networks saved in wireless_networks to wpa_supplicant,
|
||||
without restarting it or touching its config file.
|
||||
"""
|
||||
|
||||
import json
|
||||
|
|
|
@ -70,6 +70,9 @@ in
|
|||
after = [ "wpa_supplicant.service" ];
|
||||
wantedBy = [ "wpa_supplicant.service" ];
|
||||
path = with pkgs; [ wpa_supplicant ];
|
||||
script = "${applyScript}";
|
||||
script = ''
|
||||
for i in {1..10}; do wpa_cli status &> /dev/null && break; done
|
||||
${applyScript}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue