blob: 126a03670b78b7301f4cb86ffe30e26aaaf55c8a (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh -e
tmp=$(mktemp)
dmenu -p "Enter password: " -nb '#1d2021' -nf '#1d2021' <&- >$tmp
geli attach -k /root/geli_keys/hdd_ext.key -j $tmp /dev/da0
rm $tmp
mkdir -p "$HOME"/hdd
mount /dev/da0.eli "$HOME"/hdd
|