Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fail="true"
- LUKS_PASSWORD1=""
- while [ $fail="true" ]; do
- echo -n " Password > "
- read LUKS_PASSWORD1
- echo "";
- for dev in "${!devs[@]}"; do
- echo "Opening ${devs[$dev]} to $dev"
- echo $LUKS_PASSWORD1 | sudo cryptsetup luksOpen $dev ${devs[$dev]} -d - &
- done;
- wait
- if [[ -e /dev/mapper/dev0 ]]; then
- [[ -e /dev/mapper/dev0 ]] && echo "true"
- ssh -i /home/user/.ssh/another-machine novum@10.147.20.100 -t 'play "/images/voices/Shuuten Douji/databasesunlocked.mp3"; wait; exit;';
- fail="false"
- else
- ssh -i /home/user/.ssh/another-machine novum@10.147.20.100 -t 'play "/images/voices/Shuuten Douji/that was incorrect, but please try again.mp3"; wait; exit;';
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement