From: Ulrich Dangel Date: Thu, 10 Sep 2009 08:25:58 +0000 (+0200) Subject: modify wget parameter to only try once to download given config X-Git-Tag: v0.8.29~1 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=f53520a5abae26b3e7511777baabf72597a50aa3 modify wget parameter to only try once to download given config --- diff --git a/autoconfig.functions b/autoconfig.functions index 8097a2d..3c594cf 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1799,7 +1799,7 @@ config_netconfig(){ CONFIGFILE='/tmp/netconfig.grml' getconfig() { - wget --timeout=10 --dns-timeout=10 --connect-timeout=10 \ + wget --timeout=10 --dns-timeout=10 --connect-timeout=10 --tries=1 \ --read-timeout=10 $CONFIG -O $CONFIGFILE && return 0 || return 1 } einfo "Trying to get ${WHITE}${CONFIG}${NORMAL}"