diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2012-01-04 19:06:38 -0200 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2012-01-04 19:06:38 -0200 | 
| commit | cf43055626f2405a751d5a560739c938d38d6274 (patch) | |
| tree | 5c352277edfa573203bf7c2075db77aa4a2df871 | |
| parent | 2f81a15a35b957758a414135cf0800941baac722 (diff) | |
| download | hydra-cf43055626f2405a751d5a560739c938d38d6274.tar.gz hydra-cf43055626f2405a751d5a560739c938d38d6274.tar.bz2  | |
Another device check at bootless
| -rwxr-xr-x | share/hydra/bootless | 6 | 
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}  | 
