You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hacks/bin/unlock-syncpi-alpha

10 lines
247 B

#!/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
gpg -d "$KEYFILE" | ssh root@syncpi-las1-alpha.local "bash /root/unlock_disks"