Bug #1414
dhclient fail on wifi
| Status: | Closed | Start date: | 04/05/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Affected version: | Affected Architecture: |
Description
If using dhcp on a wifi interface dhclient fails because it is executed before wpa_supplicant is finished configurering the interface.
Maybe not the most elegant solution but it can be fixed by adding a small delay in interface_wireless_configure() :
--- /etc/inc/interfaces.orig 2011-04-05 13:52:49.000000000 0200
++ /etc/inc/interfaces.inc 2011-04-05 13:58:41.000000000 +0200@ -2458,6 +2458,9 @
/* execute hostapd and wpa_supplicant if required in shell */
mwexec("/bin/sh {$g['tmp_path']}/{$if}_setup.sh");
+ /* give wpa_supplicant some time to get everything straight */
+ sleep(1);
+
return 0;
}