diff options
Diffstat (limited to 'mkrootfs.sh.in')
-rw-r--r-- | mkrootfs.sh.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index b26a600..3cc7e51 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -41,7 +41,7 @@ die() { } usage() { - echo "Usage: $PROGNAME [-a raspberrypi]" + echo "Usage: $PROGNAME [-a raspberrypi] [-V]" } run_cmd() { @@ -72,10 +72,11 @@ register_binfmt() { # # main() # -while getopts "a:h" opt; do +while getopts "a:hV" opt; do case $opt in a) TARGET_ARCH="$OPTARG";; h) usage; exit 0;; + V) echo "$PROGNAME @@MKLIVE_VERSION@@"; exit 0;; esac done shift $(($OPTIND - 1)) |