cryptsetup-multidisk-ssh/query_password

10 lines
233 B
Plaintext
Raw Normal View History

2016-12-20 21:28:48 -05:00
#!/usr/bin/ash
cryptname="$1"
resolved="$2"
cpassfile="$3"
echo ""
echo "A password is required to access the ${cryptname} volume:"
read -rsp "Enter passphrase for ${resolved}: " password
echo -n "${password}" > ${cpassfile}
echo ""