1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 18:00:18 +02:00

reflash_ben.sh: remove useless -t option

This commit is contained in:
Xiangfu 2012-04-12 21:39:50 +08:00
parent 0b9b2b3f6e
commit 891cce1e94

View File

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
# version of me # version of me
__VERSION__="2011-12-12" __VERSION__="2012-04-12"
# 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"
# NanoNote images Version # NanoNote images Version
@ -25,7 +26,7 @@ K="FALSE"
R="FALSE" R="FALSE"
ALL="TRUE" ALL="TRUE"
while getopts d:t:v:l:hbkr OPTIONS while getopts d:v:l:hbkr OPTIONS
do do
case $OPTIONS in case $OPTIONS in
d) d)
@ -33,11 +34,6 @@ do
VERSION=$OPTARG # override version by first argument VERSION=$OPTARG # override version by first argument
WORKING_DIR=${VERSION} WORKING_DIR=${VERSION}
;; ;;
t)
BASE_URL_HTTP="http://downloads.qi-hardware.com/software/images/NanoNote/Ben/testing"
VERSION=$OPTARG
WORKING_DIR=${VERSION}
;;
v) v)
VERSION=$OPTARG VERSION=$OPTARG
WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}" WORKING_DIR="${HOME}/.qi/nanonote/ben/${VERSION}"
@ -62,27 +58,28 @@ do
*) *)
echo "\ echo "\
Usage: $0 [-d <dailybuild version>] [-t <testing version>] [-v <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 [dailybuild] version of OpenWrt images -d <> I will download and flash a [dailybuild] version of OpenWrt images
From: http://downloads.qi-hardware.com/software/images/NanoNote/Ben
-t <> I will download and flash a [testing] version of OpenWrt images
-v <> I will download and flash a [specific] version of OpenWrt images -v <> I will download and flash a [specific] version of OpenWrt images
From: http://fidelio.qi-hardware.com/~xiangfu/build-nanonote/
-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)
-b flash bootloader(u-boot) -b Flash bootloader(u-boot)
-k linux kernel -k Linux kernel
-r root filesystem -r Root filesystem
-h you already found out -h You already found out
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)
version: ${__VERSION__} version: ${__VERSION__}