Commit 8bd8b8d4 authored by root's avatar root Committed by Guillaume Tucker
Browse files

flash-kevin.sh: replace url with fw



Replace the "url" command line option with "fw" to use a local
firmware file and let the user download the firmware independently.

Signed-off-by: Guillaume Tucker's avatarGuillaume Tucker <guillaume.tucker@collabora.com>
parent 530b40b7
......@@ -6,7 +6,7 @@ export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
device="$1"
url="$2"
fw="$2"
backup="${3:-$device-backup.bin}"
[ -n "$device" ] || {
......@@ -14,8 +14,8 @@ backup="${3:-$device-backup.bin}"
exit 1
}
[ -n "$url" ] || {
echo "Missing firmware URL"
[ -n "$fw" ] || {
echo "Missing firmware file"
exit 1
}
......@@ -26,9 +26,6 @@ cmd()
dut-control --rcfile=/etc/google-servo.conf -n $device $args
}
fw=$(basename "$url")
echo "Downloading firmware file as $fw"
curl "$url" > "$fw"
md5sum "$fw"
echo "* reset"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment