aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/bootless8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydra/bootless b/share/hydra/bootless
index 774f9fa..7f7de0f 100755
--- a/share/hydra/bootless
+++ b/share/hydra/bootless
@@ -76,14 +76,13 @@ EOF
echo -n "Target device: "
read device
else
- device=$1
+ usbdevice=$1
+ device="${usbdevice}1"
fi
if [ "$2" == "--rsync" ]; then
rsync="true"
fi
-
- usbdevice=`echo ${device} | sed -e s/[0-9]\$//g`
# Issue a warning
hydra_bootless_warning ${device}
@@ -170,7 +169,8 @@ function hydra_bootless_update {
echo -n "Target device: "
read device
else
- device=$1
+ usbdevice=$1
+ device="${usbdevice}1"
fi
# Target device consistency check