summaryrefslogtreecommitdiffstats
path: root/.local/bin/hddmnt
blob: 8f7a515be2341455aef945569694681553368954 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/local/bin/dash -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