]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bcon: check for hdparm in bcon_tail
authorJoern Engel <joern@logfs.org>
Fri, 22 Feb 2013 17:29:16 +0000 (09:29 -0800)
committerJoern Engel <joern@logfs.org>
Fri, 22 Feb 2013 17:29:16 +0000 (09:29 -0800)
From: Borislav Petkov <bp@alien8.de>
Signed-off-by: Joern Engel <joern@logfs.org>
Documentation/block/blockconsole/bcon_tail

index b4bd6604b1d769b931eafd27e52c5932e846eaac..eb3524be7dc3d288ee4200858842087b48e958e6 100755 (executable)
@@ -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`