summaryrefslogtreecommitdiffstats
path: root/.local/bin/hddmnt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/hddmnt12
1 files changed, 8 insertions, 4 deletions
diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt
index b2ccf77..8f7a515 100755
--- a/.local/bin/hddmnt
+++ b/.local/bin/hddmnt
@@ -1,5 +1,9 @@
-#!/usr/local/bin/dash
+#!/usr/local/bin/dash -e
-geli attach -k /root/geli_keys/hdd_ext.key /dev/da0 &&
- mkdir -p "$HOME"/hdd &&
- mount /dev/da0.eli "$HOME"/hdd
+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