projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
974def8
)
modify wget parameter to only try once to download given config
author
Ulrich Dangel
<mru@grml.org>
Thu, 10 Sep 2009 08:25:58 +0000
(10:25 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 10 Sep 2009 13:42:58 +0000
(15:42 +0200)
autoconfig.functions
patch
|
blob
|
history
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
8097a2d
..
3c594cf
100755
(executable)
--- 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}"