diff options
author | Robby Workman <rworkman@slackware.com> | 2017-11-20 21:52:34 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-11-21 00:07:59 -0600 |
commit | f6cfb92d54918c46dbc8673396333b50317cfb36 (patch) | |
tree | 2e08464bdfbb253c5ad2ea248e2f78ce7221d325 /rc.inet1 | |
parent | 49d57047054641bb438124f7dbc113f722b5bf3e (diff) | |
download | slacknetsetup-8c65b8701e2e618acdc715937f6d8de62c010384.tar.xz |
rc.inet1*: Fix DHCP timeoutcurrent-20171121
This was accidentally changed from 15 seconds back to the
14.2 default of 10 seconds. Thanks to Eduard Rozenberg.
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -192,14 +192,14 @@ if_up() { # if [ "$CONNSTATUS" = "0" ]; then # # The kernel has just told us the cable isn't even plugged in, but we will # # give any DHCP server a short chance to reply anyway: - # echo "No carrier detected on ${1}. Reducing DHCP timeout to 10 seconds." - # DHCP_TIMEOUT[$i]=10 + # echo "No carrier detected on ${1}. Reducing DHCP timeout to 15 seconds." + # DHCP_TIMEOUT[$i]=15 # fi #fi #### (end commented out) - # 10 seconds should be a reasonable default DHCP timeout. 30 was too much. - echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-10} ${DHCP_OPTIONS} ${1}" | $LOGGER - /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-10} ${DHCP_OPTIONS} ${1} + # 15 seconds should be a reasonable default DHCP timeout. 30 was too much. + echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS} ${1}" | $LOGGER + /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS} ${1} # If the dhcpcd call succeeds, add extra IP addresses, if defined, to interface if [ "$?" == "0" -a ! -z "${IPALIASES[$1]}" ]; then num=0 |