home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / lib / udisks / udisks-helper-change-luks-password < prev    next >
Encoding:
Text File  |  2010-09-27  |  208 b   |  10 lines

  1. #!/bin/bash
  2. set -e
  3.  
  4. DEVICE=$1
  5. read CURPASS
  6. read NEWPASS
  7.  
  8. echo -e "$CURPASS\n$NEWPASS\n$NEWPASS\n" | /sbin/cryptsetup luksAddKey $DEVICE
  9. echo -e "$CURPASS\n$NEWPASS\n" | /sbin/cryptsetup luksRemoveKey $DEVICE
  10.