aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-24 17:12:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-24 17:12:18 -0300
commit21723c5e2a0426eef1e87d65fd356505f0046648 (patch)
tree831ef756a25f7d0e3a349f58320ab04207713e87 /files
parent561d5c5577cd9e3a8a04cc67c917b9a5b802d1b4 (diff)
downloadpuppet-backup-21723c5e2a0426eef1e87d65fd356505f0046648.tar.gz
puppet-backup-21723c5e2a0426eef1e87d65fd356505f0046648.tar.bz2
Checking drive health status on mount-media
Diffstat (limited to 'files')
-rw-r--r--files/mount-media2
1 files changed, 2 insertions, 0 deletions
diff --git a/files/mount-media b/files/mount-media
index b643a31..0073292 100644
--- a/files/mount-media
+++ b/files/mount-media
@@ -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..."