Change wget usage to make option handling easier

Switch all usage to $WGET, then set WGET in CONF.sh
First usage is to add --ca-directory /etc/ssl/ca-debian/ so https
certificates work.
This commit is contained in:
Steve McIntyre 2016-01-03 12:54:46 +00:00
parent c8e1b1e51d
commit c11d247540
47 changed files with 87 additions and 81 deletions

View File

@ -410,6 +410,11 @@ case "$OFFICIAL" in
;;
esac
# Add options to wget to include support for the Debian CA, so
# https://d-i.debian.org et al will work.
export WGET_OPTS="--ca-directory /etc/ssl/ca-debian/"
export WGET="wget $WGET_OPTS"
# Set this to force the Release file(s) to say "stable". Used in first
# Etch builds to allow us to build before the archive updated
#EARLY_BUILD_HACK=1

3
debian/changelog vendored
View File

@ -24,7 +24,8 @@ debian-cd (3.1.18) UNRELEASED; urgency=medium
Closes: #798908
* Create checksums for firmware images
* Switch references to d-i.debian.org to use https instead of http.
Closes: #809698
Closes: #809698. Also use --ca-directory /etc/ssl/ca-debian/ with wget
to ensure this works.
[ Didier Raboud ]
* For stretch, swap amd64 and i386 to let the first be the norm, and the

View File

@ -70,7 +70,7 @@ for image in initrd.gz vmlinuz; do
ab_file=`ls "$DI_DIR"/$image* | tail -1`
cp "$ab_file" .
else
wget "$DI_WWW_HOME/$image"
$WGET "$DI_WWW_HOME/$image"
fi
fi
done

View File

@ -60,7 +60,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done

View File

@ -44,7 +44,7 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="di_stuff"
mkdir "$DI_DIR"
wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
$WGET -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
fi
K32=$(basename "$DI_DIR"/vmlinux-*-parisc)

View File

@ -51,7 +51,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" $image
else
wget "$DI_WWW_HOME/$image" -O $image
$WGET "$DI_WWW_HOME/$image" -O $image
fi
fi
done

View File

@ -35,8 +35,8 @@ for image in boot.img; do
cp "$DI_DIR/cdrom/$image" . || \
cp "$DI_DIR/$image" .
else
wget "$DI_WWW_HOME/cdrom/$image" || \
wget "$DI_WWW_HOME/$image"
$WGET "$DI_WWW_HOME/cdrom/$image" || \
$WGET "$DI_WWW_HOME/$image"
fi
fi
done

View File

@ -62,7 +62,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" $image || true
else
wget "$DI_WWW_HOME/$image" -O $image
$WGET "$DI_WWW_HOME/$image" -O $image
fi
fi
done

View File

@ -65,7 +65,7 @@ if [ ! "$DI_WWW_HOME" ];then
fi
cp -a $DI_DIR/* .
else
wget -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
$WGET -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
fi
# amiga specific stuff

View File

@ -31,9 +31,9 @@ if [ ! "$DI_WWW_HOME" ];then
fi
else
DI_DIR="di_stuff"
wget -P "$DI_DIR/r4k-ip22" "$DI_WWW_HOME/r4k-ip22/cdrom-boot.img"
$WGET -P "$DI_DIR/r4k-ip22" "$DI_WWW_HOME/r4k-ip22/cdrom-boot.img"
# r5k-ip32 has no cdrom boot image yet
# wget -P "$DI_DIR/r5k-ip32" "$DI_WWW_HOME/r5k-ip32/cdrom-boot.img"
# $WGET -P "$DI_DIR/r5k-ip32" "$DI_WWW_HOME/r5k-ip32/cdrom-boot.img"
fi
install -m 644 -D "$DI_DIR"/r4k-ip22/cdrom-boot.img "$CDROOT"/install/r4k-ip22-boot.img
#r5k-ip32 has no cdrom boot image yet

View File

@ -64,12 +64,12 @@ if [ ! "$DI_WWW_HOME" ];then
fi
else
DI_DIR="."
wget "$DI_WWW_HOME" -O di.dir
$WGET "$DI_WWW_HOME" -O di.dir
r3k=$(sed -n 's/.*a href="\(vmlinux-.*-r3k-kn02\)".*/\1/ip' di.dir)
r4k=$(sed -n 's/.*a href="\(vmlinux-.*-r4k-kn04\)".*/\1/ip' di.dir)
wget "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
wget "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
wget "$DI_WWW_HOME/initrd.gz"
$WGET "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
$WGET "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
$WGET "$DI_WWW_HOME/initrd.gz"
fi
cp "$DI_DIR"/initrd.gz "$CDROOT/boot/initrd.gz"
cp "$DI_DIR"/vmlinux-*-r3k-kn02 "$CDROOT/boot/vmlinux-r3k-kn02"

View File

@ -118,8 +118,8 @@ do
cp -a "$DI_DIR/$subarch/cdrom${bitness}" "$subarch"
fi
else
if ! wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
if ! $WGET -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
$WGET -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
fi
fi

View File

@ -53,7 +53,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done

View File

@ -73,7 +73,7 @@ for image in $images_S390; do
fi
cp "$DI_DIR/$image" "$imagedest"
else
wget "$DI_WWW_HOME/$image" -O "$imagedest"
$WGET "$DI_WWW_HOME/$image" -O "$imagedest"
fi
done

View File

@ -75,10 +75,10 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="cdrom"
mkdir "./$DI_DIR"
wget "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
$WGET "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/ip' ./$DI_DIR/di.dir)
wget "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
wget "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
$WGET "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
$WGET "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
fi
if [ ! -e "$DI_DIR"/initrd.gz ] ; then

View File

@ -97,7 +97,7 @@ for image in $BOOT_IMAGES; do
# echo "Copying images from $DI_DIR"
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done
@ -115,7 +115,7 @@ for image in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
fi
cp "$DI_DIR/$image" "$image" || true
else
wget "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
fi
fi
done
@ -154,7 +154,7 @@ extra_image () {
fi
cp "$DI_DIR/cdrom/$image" $CDDIR/$INSTALLDIR/"$image"
else
wget "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
$WGET "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
fi
fi
for doppelganger in $doppelgangers ; do

View File

@ -70,7 +70,7 @@ for image in initrd.gz vmlinuz; do
ab_file=`ls "$DI_DIR"/$image* | tail -1`
cp "$ab_file" .
else
wget "$DI_WWW_HOME/$image"
$WGET "$DI_WWW_HOME/$image"
fi
fi
done

View File

@ -64,7 +64,7 @@ if [ ! "$DI_WWW_HOME" ];then
fi
cp "$DI_DIR/MANIFEST" MANIFEST
else
wget "$DI_WWW_HOME/MANIFEST" -O MANIFEST
$WGET "$DI_WWW_HOME/MANIFEST" -O MANIFEST
fi
for image in $(awk '{print $1}' MANIFEST); do
@ -79,12 +79,12 @@ for image in $(awk '{print $1}' MANIFEST); do
fi
cp -a "$DI_DIR/$image" "$image"
else
wget --no-parent -r -nH --cut-dirs=3 "$DI_WWW_HOME/$image"
$WGET --no-parent -r -nH --cut-dirs=3 "$DI_WWW_HOME/$image"
fi
fi
done
# Clean up in case we had to use wget :-(
# Clean up in case we had to use $WGET :-(
find . -name 'index.html*' -delete
exit 0

View File

@ -60,7 +60,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done

View File

@ -44,7 +44,7 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="di_stuff"
mkdir "$DI_DIR"
wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
$WGET -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
fi
K32=$(basename "$DI_DIR"/vmlinux-*-parisc)

View File

@ -51,7 +51,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" $image
else
wget "$DI_WWW_HOME/$image" -O $image
$WGET "$DI_WWW_HOME/$image" -O $image
fi
fi
done

View File

@ -35,8 +35,8 @@ for image in boot.img; do
cp "$DI_DIR/cdrom/$image" . || \
cp "$DI_DIR/$image" .
else
wget "$DI_WWW_HOME/cdrom/$image" || \
wget "$DI_WWW_HOME/$image"
$WGET "$DI_WWW_HOME/cdrom/$image" || \
$WGET "$DI_WWW_HOME/$image"
fi
fi
done

View File

@ -62,7 +62,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" $image || true
else
wget "$DI_WWW_HOME/$image" -O $image
$WGET "$DI_WWW_HOME/$image" -O $image
fi
fi
done

View File

@ -63,7 +63,7 @@ if [ ! "$DI_WWW_HOME" ];then
fi
cp -a $DI_DIR/* .
else
wget -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
$WGET -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
fi
# amiga specific stuff

View File

@ -45,7 +45,7 @@ if [ ! "$DI_WWW_HOME" ];then
fi
cp "$DI_DIR/MANIFEST" MANIFEST
else
wget "$DI_WWW_HOME/MANIFEST" -O MANIFEST
$WGET "$DI_WWW_HOME/MANIFEST" -O MANIFEST
fi
for image in $(awk '{print $1}' MANIFEST); do
@ -60,12 +60,12 @@ for image in $(awk '{print $1}' MANIFEST); do
fi
cp -a "$DI_DIR/$image" "$image"
else
wget --no-parent -r -nH --cut-dirs=3 "$DI_WWW_HOME/$image"
$WGET --no-parent -r -nH --cut-dirs=3 "$DI_WWW_HOME/$image"
fi
fi
done
# Clean up in case we had to use wget :-(
# Clean up in case we had to use $WGET :-(
find . -name 'index.html*' -delete
exit 0

View File

@ -64,12 +64,12 @@ if [ ! "$DI_WWW_HOME" ];then
fi
else
DI_DIR="."
wget "$DI_WWW_HOME" -O di.dir
$WGET "$DI_WWW_HOME" -O di.dir
r3k=$(sed -n 's/.*a href="\(vmlinux-.*-r3k-kn02\)".*/\1/ip' di.dir)
r4k=$(sed -n 's/.*a href="\(vmlinux-.*-r4k-kn04\)".*/\1/ip' di.dir)
wget "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
wget "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
wget "$DI_WWW_HOME/initrd.gz"
$WGET "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
$WGET "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
$WGET "$DI_WWW_HOME/initrd.gz"
fi
cp "$DI_DIR"/initrd.gz "$CDROOT/boot/initrd.gz"
cp "$DI_DIR"/vmlinux-*-r3k-kn02 "$CDROOT/boot/vmlinux-r3k-kn02"

View File

@ -116,8 +116,8 @@ do
cp -a "$DI_DIR/$subarch/cdrom${bitness}" "$subarch"
fi
else
if ! wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
if ! $WGET -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
$WGET -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
fi
fi

View File

@ -53,7 +53,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done

View File

@ -73,7 +73,7 @@ for image in $images_S390; do
fi
cp "$DI_DIR/$image" "$imagedest"
else
wget "$DI_WWW_HOME/$image" -O "$imagedest"
$WGET "$DI_WWW_HOME/$image" -O "$imagedest"
fi
done

View File

@ -73,10 +73,10 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="cdrom"
mkdir "./$DI_DIR"
wget "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
$WGET "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/ip' ./$DI_DIR/di.dir)
wget "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
wget "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
$WGET "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
$WGET "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
fi
if [ ! -e "$DI_DIR"/initrd.gz ] ; then

View File

@ -73,10 +73,10 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="cdrom"
mkdir "./$DI_DIR"
wget "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
$WGET "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/ip' ./$DI_DIR/di.dir)
wget "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
wget "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
$WGET "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
$WGET "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
fi
if [ ! -e "$DI_DIR"/initrd.gz ] ; then

View File

@ -97,7 +97,7 @@ for image in $BOOT_IMAGES; do
# echo "Copying images from $DI_DIR"
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done
@ -115,7 +115,7 @@ for image in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
fi
cp "$DI_DIR/$image" "$image" || true
else
wget "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
fi
fi
done
@ -154,7 +154,7 @@ extra_image () {
fi
cp "$DI_DIR/cdrom/$image" $CDDIR/$INSTALLDIR/"$image"
else
wget "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
$WGET "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
fi
fi
for doppelganger in $doppelgangers ; do

View File

@ -75,7 +75,7 @@ for image in initrd.gz vmlinuz; do
fi
cp "$DI_DIR/$image" .
else
wget "$DI_WWW_HOME/$image"
$WGET "$DI_WWW_HOME/$image"
fi
fi
done

View File

@ -50,7 +50,7 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="di_stuff"
mkdir "$DI_DIR"
wget -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
$WGET -r -nd --no-parent -P "$DI_DIR" "$DI_WWW_HOME"
fi
cp "$DI_DIR"/vmlinux-*-parisc "$CDROOT/install"

View File

@ -48,7 +48,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" $image
else
wget "$DI_WWW_HOME/$image" -O $image
$WGET "$DI_WWW_HOME/$image" -O $image
fi
fi
done

View File

@ -41,8 +41,8 @@ for image in boot.img; do
cp "$DI_DIR/cdrom/$image" . || \
cp "$DI_DIR/$image" .
else
wget "$DI_WWW_HOME/cdrom/$image" || \
wget "$DI_WWW_HOME/$image"
$WGET "$DI_WWW_HOME/cdrom/$image" || \
$WGET "$DI_WWW_HOME/$image"
fi
fi
done

View File

@ -56,7 +56,7 @@ for image in $BOOT_IMAGES; do
fi
cp "$DI_DIR/$image" $image || true
else
wget "$DI_WWW_HOME/$image" -O $image
$WGET "$DI_WWW_HOME/$image" -O $image
fi
fi
done

View File

@ -68,7 +68,7 @@ if [ ! "$DI_WWW_HOME" ];then
fi
cp -a $DI_DIR/* .
else
wget -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
$WGET -q -np -nH --cut-dirs=4 -r -l 3 -R '.gif,.log,stats.txt,index*' "$DI_WWW_HOME"
fi
# amiga specific stuff

View File

@ -37,9 +37,9 @@ if [ ! "$DI_WWW_HOME" ];then
fi
else
DI_DIR="di_stuff"
wget -P "$DI_DIR/r4k-ip22" "$DI_WWW_HOME/r4k-ip22/cdrom-boot.img"
$WGET -P "$DI_DIR/r4k-ip22" "$DI_WWW_HOME/r4k-ip22/cdrom-boot.img"
# r5k-ip32 has no cdrom boot image yet
# wget -P "$DI_DIR/r5k-ip32" "$DI_WWW_HOME/r5k-ip32/cdrom-boot.img"
# $WGET -P "$DI_DIR/r5k-ip32" "$DI_WWW_HOME/r5k-ip32/cdrom-boot.img"
fi
install -m 644 -D "$DI_DIR"/r4k-ip22/cdrom-boot.img "$CDROOT"/install/r4k-ip22-boot.img
#r5k-ip32 has no cdrom boot image yet

View File

@ -70,12 +70,12 @@ if [ ! "$DI_WWW_HOME" ];then
fi
else
DI_DIR="."
wget "$DI_WWW_HOME" -O di.dir
$WGET "$DI_WWW_HOME" -O di.dir
r3k=$(sed -n 's/.*a href="\(vmlinux-.*-r3k-kn02\)".*/\1/ip' di.dir)
r4k=$(sed -n 's/.*a href="\(vmlinux-.*-r4k-kn04\)".*/\1/ip' di.dir)
wget "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
wget "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
wget "$DI_WWW_HOME/initrd.gz"
$WGET "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
$WGET "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
$WGET "$DI_WWW_HOME/initrd.gz"
fi
cp "$DI_DIR"/initrd.gz "$CDROOT/boot/initrd.gz"
cp "$DI_DIR"/vmlinux-*-r3k-kn02 "$CDROOT/boot/vmlinux-r3k-kn02"

View File

@ -124,8 +124,8 @@ do
cp -a "$DI_DIR/$subarch/cdrom${bitness}" "$subarch"
fi
else
if ! wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
if ! $WGET -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
$WGET -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
fi
fi

View File

@ -85,7 +85,7 @@ for image in $images_S390; do
fi
cp "$DI_DIR/$image" "$imagedest"
else
wget "$DI_WWW_HOME/$image" -O "$imagedest"
$WGET "$DI_WWW_HOME/$image" -O "$imagedest"
fi
done

View File

@ -81,10 +81,10 @@ if [ ! "$DI_WWW_HOME" ];then
else
DI_DIR="cdrom"
mkdir "./$DI_DIR"
wget "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
$WGET "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/ip' ./$DI_DIR/di.dir)
wget "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
wget "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
$WGET "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
$WGET "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
fi
if [ ! -e "$DI_DIR"/initrd.gz ] ; then

View File

@ -88,7 +88,7 @@ for image in $BOOT_IMAGES; do
# echo "Copying images from $DI_DIR"
cp "$DI_DIR/$image" "$image"
else
wget "$DI_WWW_HOME/$image" -O "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image"
fi
fi
done
@ -106,7 +106,7 @@ for image in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
fi
cp "$DI_DIR/$image" "$image" || true
else
wget "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
$WGET "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
fi
fi
done
@ -145,7 +145,7 @@ extra_image () {
fi
cp "$DI_DIR/cdrom/$image" $CDDIR/$INSTALLDIR/"$image"
else
wget "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
$WGET "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
fi
fi
for doppelganger in $doppelgangers ; do

View File

@ -59,7 +59,7 @@ if [ "$OMIT_RELEASE_NOTES" != 1 ]; then
mkdir -p $RN
cd $RN
echo "Downloading most recent release notes for $ARCH"
wget $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
$WGET $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
if [ -e release-notes-$ARCH.tar.gz ] ; then
tar xzvf release-notes-$ARCH.tar.gz
rm -f release-notes-$ARCH.tar.gz

View File

@ -59,7 +59,7 @@ if [ "$OMIT_RELEASE_NOTES" != 1 ]; then
mkdir -p $RN
cd $RN
echo "Downloading most recent release notes for $ARCH"
wget $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
$WGET $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
if [ -e release-notes-$ARCH.tar.gz ] ; then
tar xzvf release-notes-$ARCH.tar.gz
rm -f release-notes-$ARCH.tar.gz

View File

@ -59,7 +59,7 @@ if [ "$OMIT_RELEASE_NOTES" != 1 ]; then
mkdir -p $RN
cd $RN
echo "Downloading most recent release notes for $ARCH"
wget $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
$WGET $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
if [ -e release-notes-$ARCH.tar.gz ] ; then
tar xzvf release-notes-$ARCH.tar.gz
rm -f release-notes-$ARCH.tar.gz