|
@ -8,6 +8,7 @@ source functions.sh |
|
|
|
|
|
|
|
|
have_input_image=0 |
|
|
have_input_image=0 |
|
|
request_update=0 |
|
|
request_update=0 |
|
|
|
|
|
verbose=0 |
|
|
|
|
|
|
|
|
usage() |
|
|
usage() |
|
|
{ |
|
|
{ |
|
@ -21,10 +22,11 @@ usage() |
|
|
echo "Options:" |
|
|
echo "Options:" |
|
|
echo " -i path to the image to flash" |
|
|
echo " -i path to the image to flash" |
|
|
echo " -U update: check for a new Skulls package online" |
|
|
echo " -U update: check for a new Skulls package online" |
|
|
|
|
|
echo " -v verbose output. prints more information" |
|
|
echo " -h print this help text" |
|
|
echo " -h print this help text" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
args=$(getopt -o i:hU -- "$@") |
|
|
|
|
|
|
|
|
args=$(getopt -o i:hUv -- "$@") |
|
|
if [ $? -ne 0 ] ; then |
|
|
if [ $? -ne 0 ] ; then |
|
|
usage |
|
|
usage |
|
|
exit 1 |
|
|
exit 1 |
|
@ -46,6 +48,9 @@ do |
|
|
-U) |
|
|
-U) |
|
|
request_update=1 |
|
|
request_update=1 |
|
|
;; |
|
|
;; |
|
|
|
|
|
-v) |
|
|
|
|
|
verbose=1 |
|
|
|
|
|
;; |
|
|
--) |
|
|
--) |
|
|
shift |
|
|
shift |
|
|
break |
|
|
break |
|
|