summaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-01-08 17:14:23 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-01-08 17:14:23 -0800
commit9fbfa131b799b26e5a8db94bb5e60f7ab3069424 (patch)
treeff887627cad65e3061caf076cbc04356220cec63 /scripts/install
parent94fff914186c80b5d310fc9296d83726e5de1f29 (diff)
downloadvyatta-cfg-quagga-9fbfa131b799b26e5a8db94bb5e60f7ab3069424.tar.gz
vyatta-cfg-quagga-9fbfa131b799b26e5a8db94bb5e60f7ab3069424.zip
Switch from wget to curl since the latter supports more URL methods.
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/install-image7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index 76418158..507ee294 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -56,13 +56,13 @@ fetch_iso_by_url ()
mkdir $TEMP_DIR
echo "Trying to fetch ISO file from $NEW_ISO"
- wget -P $TEMP_DIR $NEW_ISO
+ filename="${TEMP_DIR}/${NEW_ISO##*/}"
+ curl -# -f -o $filename $NEW_ISO
if [ $? -ne 0 ]; then
echo "Unable to fetch ISO from $NEW_ISO"
exit 1
fi
- filename="${TEMP_DIR}/${NEW_ISO##*/}"
if [ ! -e $filename ]; then
echo "Download of $NEW_ISO failed"
exit 1
@@ -79,7 +79,8 @@ set_up_new_iso ()
if [ "$url_scheme" != "$NEW_ISO" ]; then
if [ "$url_scheme" = "http" -o "$url_scheme" = "https" -o \
- "$url_scheme" = "ftp" ]; then
+ "$url_scheme" = "ftp" -o "$url_scheme" = "tftp" -o \
+ "$url_scheme" = "scp" ]; then
fetch_iso_by_url
fi
fi