aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/bootless
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydra/bootless')
-rwxr-xr-xshare/hydra/bootless6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydra/bootless b/share/hydra/bootless
index 5bf6ed4..efc4b05 100755
--- a/share/hydra/bootless
+++ b/share/hydra/bootless
@@ -99,7 +99,11 @@ EOF
exit 1
fi
- # TODO: check if $device exists
+ # Target device consistency check
+ if [ ! -b ${device} ]; then
+ echo "Error: device \"${device}\" not found."
+ exit 1
+ fi
# Format and mount
$sudo mke2fs ${device}