summaryrefslogtreecommitdiffstats
path: root/.local/bin/fathddmnt
blob: 758be1fe34c0f3e5de4fbc9c9c0e26a2d4cc57dc (plain)
1
2
3
4
5
6
7
8
#!/bin/sh -e

tmp=$(mktemp)

dmenu -p "Enter password: " -nb '#1d2021' -nf '#1d2021' <&- >"$tmp"
geli attach -k /root/geli_keys/fathdd_ext.key -j "$tmp" /dev/da0p1
mkdir -p "$HOME"/hdd
mount /dev/da0p1.eli "$HOME"/hdd