Mercurial > backup
diff cd-crypt-mount.sh @ 25:a3e87a2741d4
rename.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 29 Jan 2015 20:49:00 -0800 |
parents | cd-mount.sh@d5e1419ed984 |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cd-crypt-mount.sh Thu Jan 29 20:49:00 2015 -0800 1.3 @@ -0,0 +1,9 @@ 1.4 +#!/bin/sh 1.5 + 1.6 + 1.7 +cryptsetup loopaesOpen /dev/cdrom encrypted_cd --key-size 256 \ 1.8 + --key-file /etc/cd-key && \ 1.9 +\ 1.10 +mount /dev/mapper/encrypted_cd "$1" 1.11 + 1.12 +