]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Checking drive health status on mount-media
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 24 Mar 2013 20:12:18 +0000 (17:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 24 Mar 2013 20:12:18 +0000 (17:12 -0300)
files/mount-media

index b643a3166d62da3653d8bff6f9ebbf5864c887bf..0073292d1f7c303d7035aaeedd68d76e2d94efeb 100644 (file)
@@ -29,6 +29,8 @@ if [ "`whoami`" != 'root' ]; then
 fi
 
 if [ "$BASENAME" == "mount-media" ]; then
+  echo "Checking drive health status..."
+  $sudo smartctl -H /dev/$DISK
   echo "Disabling STANDBY on drive..."
   $sudo sdparm --clear STANDBY -6 /dev/$DISK
   echo "Initializing crypto layer..."