]> gitweb.fluxo.info Git - hydra.git/commitdiff
Adding missing code at bootless
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 31 Dec 2012 20:59:55 +0000 (18:59 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 31 Dec 2012 20:59:55 +0000 (18:59 -0200)
share/hydra/bootless

index eedcf085807ae275bd2f228a2f774b036f08867c..3c1dcbe2bc9867aac898db5961d003cd6ef8ff38 100755 (executable)
@@ -179,6 +179,13 @@ function hydra_bootless_update {
     sudo="sudo"
   fi
 
+  if [ -z "$1" ]; then
+    echo -n "Target device: "
+    read device
+  else
+    device=$1
+  fi
+
   # Target device consistency check
   if [ ! -b ${device} ]; then
     echo "Error: device \"${device}\" not found."