aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-09-19 04:57:20 +0000
committerJudd Vinet <judd@archlinux.org>2003-09-19 04:57:20 +0000
commit6ea51dec01002c6b392c374fa70a62020edffd84 (patch)
treef493db4749736c1015c7a3a1d013878bef3e4e48 /network
parent2a48c5bd8db694cfe3a26cc3ef92e36050859b31 (diff)
downloadinitscripts-6ea51dec01002c6b392c374fa70a62020edffd84.tar.xz
added timeout to dhcp startup
Diffstat (limited to 'network')
-rwxr-xr-xnetwork4
1 files changed, 2 insertions, 2 deletions
diff --git a/network b/network
index 5fadbcd..dcc1206 100755
--- a/network
+++ b/network
@@ -9,8 +9,8 @@ ifup()
eval new_ifline=$varname
if [ "$new_ifline" = "dhcp" ]; then
# remove the .pid file if it exists
- rm -f /etc/dhcpc/dhcpcd-${1}.pid >/dev/null 2>&1
- /usr/sbin/dhcpcd -h $HOSTNAME $1
+ rm -f /etc/dhcpc/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1
+ /usr/sbin/dhcpcd -t 10 -h $HOSTNAME $1
else
/sbin/ifconfig $new_ifline
fi