summaryrefslogtreecommitdiffstats
path: root/test/TEST-12-RAID-DEG/cryptroot-ask.sh
blob: a6b7ac70f39add750dd78e6f95c6f042e2283ea7 (plain)
1
2
3
4
5
#!/bin/sh

[ -b /dev/mapper/"$2" ] && exit 0
printf test > /keyfile
/sbin/cryptsetup luksOpen "$1" "$2" < /keyfile