changeset 340:595332f94fea

Add timeout to wget, and add another mirror (impactlinux.com) so there's a place to get toybox if landley.net is down. Busybox 1.2.2 wget doesn't support timeouts so yank that and add it to the host-tools blacklist (which doubles as the todo list for toybox). Also, the sha1sum I was using didn't match the toybox _release_ tarball (probably some handrolled one I did).
author Rob Landley <rob@landley.net>
date Sat, 31 May 2008 19:09:43 -0500
parents 82e8b8e38dd2
children e1c34ff45cd3
files download.sh host-tools.sh include.sh sources/config-busybox
diffstat 4 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/download.sh	Sat May 31 18:16:56 2008 -0500
+++ b/download.sh	Sat May 31 19:09:43 2008 -0500
@@ -46,7 +46,7 @@
 download &&
 
 URL=http://landley.net/code/toybox/downloads/toybox-0.0.6.tar.bz2 \
-SHA1=da39a3ee5e6b4b0d3255bfef95601890afd80709 \
+SHA1=188c602a89dc6a53144a65e2fed92696a3d24444 \
 download &&
 
 # Ye olde emulator
--- a/host-tools.sh	Sat May 31 18:16:56 2008 -0500
+++ b/host-tools.sh	Sat May 31 19:09:43 2008 -0500
@@ -21,7 +21,7 @@
 # The last six need to be added to toybox.  (The build breaks if we use
 # the busybox-1.2.2 versions.)
 
-for i in ar as nm cc gcc make ld   bzip2 find install od sort diff
+for i in ar as nm cc gcc make ld   bzip2 find install od sort diff wget
 do
   [ ! -f "${HOSTTOOLS}/$i" ] && (ln -s `which $i` "${HOSTTOOLS}/$i" || dienow)
 done
--- a/include.sh	Sat May 31 18:16:56 2008 -0500
+++ b/include.sh	Sat May 31 19:09:43 2008 -0500
@@ -101,7 +101,8 @@
 
   # The extra "" is so we test the sha1sum after the last download.
 
-  for i in "$URL" http://www.landley.net/code/firmware/mirror/"$FILENAME" ""
+  for i in "$URL" http://impactlinux.com/firmware/mirror/"$FILENAME" \
+    http://127.0.0.1/code/firmware/mirror/"$FILENAME" ""
   do
     # Return success if we have a valid copy of the file
 
@@ -133,7 +134,7 @@
 
     if [ -n "$i" ]
     then
-      wget -P "$SRCDIR" "$i"
+      wget -t 2 -T 20 -P "$SRCDIR" "$i"
     fi
   done
 
--- a/sources/config-busybox	Sat May 31 18:16:56 2008 -0500
+++ b/sources/config-busybox	Sat May 31 19:09:43 2008 -0500
@@ -548,11 +548,11 @@
 # CONFIG_FEATURE_UDHCP_SYSLOG is not set
 # CONFIG_FEATURE_UDHCP_DEBUG is not set
 # CONFIG_VCONFIG is not set
-CONFIG_WGET=y
-CONFIG_FEATURE_WGET_STATUSBAR=y
-CONFIG_FEATURE_WGET_AUTHENTICATION=y
+# CONFIG_WGET is not set
+# CONFIG_FEATURE_WGET_STATUSBAR is not set
+# CONFIG_FEATURE_WGET_AUTHENTICATION is not set
 # CONFIG_FEATURE_WGET_IP6_LITERAL is not set
-CONFIG_FEATURE_WGET_LONG_OPTIONS=y
+# CONFIG_FEATURE_WGET_LONG_OPTIONS is not set
 # CONFIG_ZCIP is not set
 
 #