From 884063c1969bfc4a70b6ba7b997e7ed134570e6a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 10 Apr 2022 13:08:39 +0200 Subject: Mount scripts rework incoming --- .local/bin/hddmnt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.local/bin/hddmnt') 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 -- cgit v1.2.3