diff options
author | Joern Engel <joern@logfs.org> | 2013-02-22 09:29:16 -0800 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2013-02-22 09:29:16 -0800 |
commit | c8868d005330bb9b9ccdb6a2cae265fc0109405a (patch) | |
tree | 5b0467cf12538799ea6a0da35029f8cf3fc43f83 | |
parent | d559bc66417720d11f7e39a61c8b3bf421b982a9 (diff) | |
download | bcon2-c8868d005330bb9b9ccdb6a2cae265fc0109405a.tar.gz |
bcon: check for hdparm in bcon_tail
From: Borislav Petkov <bp@alien8.de>
Signed-off-by: Joern Engel <joern@logfs.org>
-rwxr-xr-x | Documentation/block/blockconsole/bcon_tail | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/block/blockconsole/bcon_tail b/Documentation/block/blockconsole/bcon_tail index b4bd6604b1d769..eb3524be7dc3d2 100755 --- a/Documentation/block/blockconsole/bcon_tail +++ b/Documentation/block/blockconsole/bcon_tail @@ -14,6 +14,11 @@ if [ -z "$(which lsscsi)" ]; then exit 1 fi +if [ -z "$(which hdparm)" ]; then + echo "You need to install the hdparm package on your distro." + exit 1 +fi + end_of_log() { DEV=$1 UUID=`head -c40 $DEV|tail -c8` |