Commit a1b95baf authored by Benoit Rat's avatar Benoit Rat

scripts: update fetch & install for v2.0

parent 9f51b246
......@@ -93,7 +93,8 @@ fetch()
fetchfile ${url} ${md5}
echo "Extracting ..."
cd ${DOWNLOADDIR};
tar -xzvf $(basename ${url}) --wildcards *.bin
file=$(basename ${url})
tar xzvf $file $(tar tf $file | grep .bin)
}
......@@ -175,8 +176,7 @@ exit 0
# setup script dir
scriptdir=$(cd $(dirname $0); pwd)
DOWNLOADDIR=${scriptdir}/../firmware
PKGURL="http://www.ohwr.org/attachments/download/1815/wr-starting-kit-v1.0_gw.tar.gz 9a7a6d8e6815adebb6796a37d1621acd"
PKGURL="http://www.ohwr.org/attachments/download/2744/wr-starting-kit-v2.0_gw.tar.gz 9e48bbe6c30b18864ecddceb7627e6e9"
while [ $# -gt 0 ]; do # Until you run out of parameters . . .
case "$1" in
......
Markdown is supported
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