aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netbase/netbase/slugos/if-pre-up.d/udhcpc-fix
blob: 7d2e9705eab8e295c304a9debe02835359829113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# This works around a problem where udhcpc times out w/o getting a lease
# due to slow auto-negotiate.

if test "$IFACE" = "eth0" -a "$METHOD" = "dhcp"
then
	echo -n "[sleeping 5s]..."
	ifconfig eth0 up
	sleep 5
fi