summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-09-13 06:18:07 +0000
committerimp <imp@FreeBSD.org>2001-09-13 06:18:07 +0000
commitd3c770d2d4e7c97490b535ab7fd4095ac6c62c22 (patch)
treef156229909a45ef5c6cc46410f275712c511586c /etc/pccard_ether
parentb9eed5024e7b0cf09825fd7364e32c6bbe022eee (diff)
downloadFreeBSD-src-d3c770d2d4e7c97490b535ab7fd4095ac6c62c22.zip
FreeBSD-src-d3c770d2d4e7c97490b535ab7fd4095ac6c62c22.tar.gz
Due to a bug in the ed driver, which leads to hangs when using it with
dhclient and pccard_ether, introduce the concept of a "settle time" to pccard_ether with the new pccard_ether_delay variable. Defaults to 5 seconds, which is enough time for the ed driver to finish its autoconfiguration for newer Linksys based cards. This also can eliminate the ed0: timeout messages that happen at startup as well. MFC: after RE says OK.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index d790a38..f6a0e61 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -46,6 +46,17 @@ shift
startstop=$1
shift
+case ${pccard_ether_delay} in
+[Nn][Oo])
+ ;;
+[0-9])
+ sleep ${pccard_ether_delay}
+ ;;
+*) # Default until it has had a chance to make it to /etc/defaults/rc.conf
+ sleep 5
+ ;;
+esac
+
case ${pccard_ifconfig} in
[Nn][Oo] | '')
expr "${removable_interfaces}" : ".*${interface}" > /dev/null || exit 0
OpenPOWER on IntegriCloud