git: 25a97fbf46d5 - stable/12 - rc.d/wpa_supplicant: Remove the sleep to improve boot time
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Aug 2022 03:36:15 UTC
The branch stable/12 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=25a97fbf46d52553156af9f9f0eb20b23fe47363
commit 25a97fbf46d52553156af9f9f0eb20b23fe47363
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-06-12 19:02:47 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-08-13 03:35:02 +0000
rc.d/wpa_supplicant: Remove the sleep to improve boot time
bapt@ had discovered a noticeable boot improvement without the sleep.
Without the sleep does not affect warm or cold boot however a
service netif restart may cause dhclient to spend a few extra seconds
to rerequest the DHCP request.
Reported by: bapt
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D35457
(cherry picked from commit 116679b39cb94fdb94c02dceb1c2cae719bd3f42)
---
libexec/rc/rc.d/wpa_supplicant | 1 -
1 file changed, 1 deletion(-)
diff --git a/libexec/rc/rc.d/wpa_supplicant b/libexec/rc/rc.d/wpa_supplicant
index 9e5f64a5373f..e7a34e6c5f6e 100755
--- a/libexec/rc/rc.d/wpa_supplicant
+++ b/libexec/rc/rc.d/wpa_supplicant
@@ -30,7 +30,6 @@ is_ndis_interface()
wpa_poststart() {
ifconfig ${ifn} down
- sleep 2
ifconfig ${ifn} up
}