diff options
author | Juan RP <xtraeme@gmail.com> | 2013-08-11 12:16:29 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-08-11 12:16:29 +0200 |
commit | 112a6a77756ff6afe6bffc544737171c05b19f15 (patch) | |
tree | 7ce4d391ab94bcb6f8e966a8c5b46d70c247c7f4 /mkrootfs.sh.in | |
parent | b877a74a49d522b2b38ebee7ae575b694a7f9f9f (diff) | |
download | hrmpf-112a6a77756ff6afe6bffc544737171c05b19f15.tar.gz hrmpf-112a6a77756ff6afe6bffc544737171c05b19f15.tar.xz hrmpf-112a6a77756ff6afe6bffc544737171c05b19f15.zip |
Add -V option to show version to void-mk{live,rootfs} and installer in the title.
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)) |