|
|
@@ -7,7 +7,7 @@ platform_file="platform-$version.tgz"
|
|
|
platform_dir="platform-$version"
|
|
|
platform_url="$host$latest_path/$platform_file"
|
|
|
md5sums_url="$host$latest_path/md5sums.txt"
|
|
|
-
|
|
|
+
|
|
|
tmp=$(mktemp -d)
|
|
|
cd "$tmp" || exit -1
|
|
|
|
|
|
@@ -22,10 +22,10 @@ if [[ -z $1 ]] ; then
|
|
|
exit -1
|
|
|
fi
|
|
|
usb="/dev/dsk/${removables[0]}p1"
|
|
|
-else
|
|
|
+else
|
|
|
usb="$1"
|
|
|
echo -n " using $usb"
|
|
|
-fi
|
|
|
+fi
|
|
|
|
|
|
umount "$usb" 2>/dev/null
|
|
|
mkdir usb
|
|
|
@@ -41,8 +41,8 @@ if [[ ! -d usb/platform ]] ; then
|
|
|
exit -1
|
|
|
else
|
|
|
echo ", OK"
|
|
|
-fi
|
|
|
-
|
|
|
+fi
|
|
|
+
|
|
|
echo -n "Downloading latest platform ($platform_file)..."
|
|
|
if ! curl -sk -o "$platform_file" "$platform_url" ; then
|
|
|
echo " failed"
|
|
|
@@ -50,7 +50,7 @@ if ! curl -sk -o "$platform_file" "$platform_url" ; then
|
|
|
else
|
|
|
echo " OK"
|
|
|
fi
|
|
|
-
|
|
|
+
|
|
|
echo -n "Verifying checksum..."
|
|
|
curl -sk "$md5sums_url" \
|
|
|
| grep "$platform_file" \
|