summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/hddmnt12
-rwxr-xr-x.local/bin/hddumnt6
2 files changed, 11 insertions, 7 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
diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt
index decd6d2..548c5bd 100755
--- a/.local/bin/hddumnt
+++ b/.local/bin/hddumnt
@@ -1,5 +1,5 @@
#!/usr/local/bin/dash
-umount /dev/da0.eli &&
- geli detach da0.eli &&
- rmdir "$HOME"/hdd
+umount /dev/da0.eli
+geli detach da0.eli
+rmdir "$HOME"/hdd