aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-06 14:50:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-06 14:50:36 -0300
commit33f7189c501d32646b3c2499dbd551cf8d3702c1 (patch)
treeac77b189efa5af064fb15460a20c27add8c7b669 /share/hydractl
parent73b8f423dbc3c1827eec968c326748c218a6d5b1 (diff)
downloadhydra-33f7189c501d32646b3c2499dbd551cf8d3702c1.tar.gz
hydra-33f7189c501d32646b3c2499dbd551cf8d3702c1.tar.bz2
Coding style
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/mount-media4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/mount-media b/share/hydractl/mount-media
index f6e3642..d6adf70 100755
--- a/share/hydractl/mount-media
+++ b/share/hydractl/mount-media
@@ -32,12 +32,16 @@ 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..."
$sudo cryptsetup luksOpen /dev/$VOLUME $MEDIA && \
+
echo "Checking filesystem..."
$sudo fsck -v -y /dev/mapper/$MEDIA && \
+
echo "Mounting volume at $MOUNTPOINT..."
$sudo mkdir -p $MOUNTPOINT
$sudo mount /dev/mapper/$MEDIA $MOUNTPOINT