mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-16 21:08:27 +02:00
nanonotefile: reflash_ben.sh support download and flash dailybuild images
This commit is contained in:
parent
9544fc556c
commit
b3c20748c2
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# version of me
|
# version of me
|
||||||
__VERSION__="2011-06-07"
|
__VERSION__="2011-07-21"
|
||||||
|
|
||||||
# use 'http' to download and flash images, use 'file' to flash images present in the <WORKING_DIR>
|
# use 'http' to download and flash images, use 'file' to flash images present in the <WORKING_DIR>
|
||||||
PROTOCOL="http"
|
PROTOCOL="http"
|
||||||
@ -25,11 +25,16 @@ K="FALSE"
|
|||||||
R="FALSE"
|
R="FALSE"
|
||||||
ALL="TRUE"
|
ALL="TRUE"
|
||||||
|
|
||||||
while getopts d:l:hbkr OPTIONS
|
while getopts d:v:l:hbkr OPTIONS
|
||||||
do
|
do
|
||||||
case $OPTIONS in
|
case $OPTIONS in
|
||||||
d)
|
d)
|
||||||
VERSION=$OPTARG # override version by first argument if passed
|
BASE_URL_HTTP="http://fidelio.qi-hardware.com/~xiangfu/compile-log/"
|
||||||
|
VERSION=$OPTARG # override version by first argument
|
||||||
|
WORKING_DIR=${VERSION}
|
||||||
|
;;
|
||||||
|
v)
|
||||||
|
VERSION=$OPTARG # override version by first argument
|
||||||
WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}"
|
WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}"
|
||||||
;;
|
;;
|
||||||
l)
|
l)
|
||||||
@ -52,8 +57,10 @@ do
|
|||||||
*)
|
*)
|
||||||
echo "\
|
echo "\
|
||||||
|
|
||||||
Usage: $0 [-d <version>] [-l <path to local images>] [-b] [-k] [-r] [-h]
|
Usage: $0 [-d <dailybuild version>] [-v <version>] [-l <path to local images>] [-b] [-k] [-r] [-h]
|
||||||
-d <> I will download and flash a specific version of OpenWrt images
|
-d <> I will download and flash a dailybuild version of OpenWrt images
|
||||||
|
|
||||||
|
-v <> I will download and flash a specific version of OpenWrt images
|
||||||
|
|
||||||
-l <> I will flash images present in folder: <arg>
|
-l <> I will flash images present in folder: <arg>
|
||||||
(missing files will be skipped)
|
(missing files will be skipped)
|
||||||
@ -67,7 +74,7 @@ Usage: $0 [-d <version>] [-l <path to local images>] [-b] [-k] [-r] [-h]
|
|||||||
without any arguments, I will download and flash the latest OpenWrt images
|
without any arguments, I will download and flash the latest OpenWrt images
|
||||||
(includes bootloader, kernel and rootfs)
|
(includes bootloader, kernel and rootfs)
|
||||||
|
|
||||||
OpenWrt reflash script for qi-hardware Ben NanoNote
|
OpenWrt reflash script for Qi Hardware Ben NanoNote
|
||||||
written by: Mirko Vogt (mirko.vogt@sharism.cc)
|
written by: Mirko Vogt (mirko.vogt@sharism.cc)
|
||||||
Xiangfu Liu (xiangfu@sharism.cc)
|
Xiangfu Liu (xiangfu@sharism.cc)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user