hacks/bin/unlock-syncpi-alpha

11 lines
245 B
Plaintext
Raw Normal View History

2019-08-08 10:27:00 +00:00
#!/bin/bash
KEYFILE="$HOME/Documents/sync/secrets/luks/syncpi-las1-alpha.luks.gpg"
if [[ ! -e "$KEYFILE" ]]; then
echo "wrong box!" >> /dev/stderr
exit 1
fi
2019-08-08 12:37:21 +00:00
gpg -d "$KEYFILE" | ssh root@syncpi-las1-alpha.tor "bash /root/unlock_disks"