aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-04 19:06:38 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-04 19:06:38 -0200
commitcf43055626f2405a751d5a560739c938d38d6274 (patch)
tree5c352277edfa573203bf7c2075db77aa4a2df871 /share
parent2f81a15a35b957758a414135cf0800941baac722 (diff)
downloadhydra-cf43055626f2405a751d5a560739c938d38d6274.tar.gz
hydra-cf43055626f2405a751d5a560739c938d38d6274.tar.bz2
Another device check at bootless
Diffstat (limited to 'share')
-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}