use/net-eth: increase DHCP timeout

bfk3 needs more than 10 seconds to bring the interface up
and get the lease.

TODO: make this configurable.
This commit is contained in:
Ivan A. Melnikov 2019-03-05 12:02:04 +04:00 committed by Michael Shigorin
parent e3b4c35782
commit 21c44d52ec

View File

@ -38,7 +38,11 @@ write_etcnet_iface() {
append=
case "$proto" in
dhcp)
append="DHCP_TIMEOUT=7"
if [ $GLOBAL_ARCH = mipsel ]; then
append="DHCP_TIMEOUT=20"
else
append="DHCP_TIMEOUT=7"
fi
;;
static)
echo "$ipv4addr" > "$dir/ipv4address"