changeset 12:d5e1419ed984

cd unmounting script.
author Robert McIntyre <rlm@mit.edu>
date Mon, 25 Feb 2013 15:43:29 +0000
parents e15c393dffa8
children 06a9a4618faf
files cd-mount.sh cd-unmount.sh
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/cd-mount.sh	Mon Feb 25 15:34:01 2013 +0000
     1.2 +++ b/cd-mount.sh	Mon Feb 25 15:43:29 2013 +0000
     1.3 @@ -2,8 +2,8 @@
     1.4  
     1.5  
     1.6  cryptsetup loopaesOpen /dev/cdrom encrypted_cd --key-size 256 \
     1.7 -           --key-file /etc/cd-key
     1.8 -
     1.9 +           --key-file /etc/cd-key && \
    1.10 +\
    1.11  mount /dev/mapper/encrypted_cd "$1"
    1.12  
    1.13  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cd-unmount.sh	Mon Feb 25 15:43:29 2013 +0000
     2.3 @@ -0,0 +1,4 @@
     2.4 +#!/bin/sh
     2.5 +
     2.6 +umount /dev/mapper/encrypted_cd && \
     2.7 +cryptsetup loopaesClose encrypted_cd