summaryrefslogtreecommitdiffstats
path: root/.local/bin/fathddmnt
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/fathddmnt')
-rwxr-xr-x.local/bin/fathddmnt8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/fathddmnt b/.local/bin/fathddmnt
new file mode 100755
index 0000000..758be1f
--- /dev/null
+++ b/.local/bin/fathddmnt
@@ -0,0 +1,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