summary refs log tree commit diff
path: root/mkrootfs.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2013-08-11 12:16:29 +0200
committerJuan RP <xtraeme@gmail.com>2013-08-11 12:16:29 +0200
commit112a6a77756ff6afe6bffc544737171c05b19f15 (patch)
tree7ce4d391ab94bcb6f8e966a8c5b46d70c247c7f4 /mkrootfs.sh.in
parentb877a74a49d522b2b38ebee7ae575b694a7f9f9f (diff)
downloadhrmpf-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.in5
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))