diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-24 19:46:53 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-24 19:46:53 +0200 |
commit | 047f248d8f4d1766d2d431e30f4b33498e55d23d (patch) | |
tree | b180d879dd18da1e130e0a6961cdeb1fe85a4f0c /.local | |
parent | Cleaner dunstrc (diff) | |
download | dotfiles-bsd-047f248d8f4d1766d2d431e30f4b33498e55d23d.tar.gz dotfiles-bsd-047f248d8f4d1766d2d431e30f4b33498e55d23d.tar.bz2 dotfiles-bsd-047f248d8f4d1766d2d431e30f4b33498e55d23d.tar.xz dotfiles-bsd-047f248d8f4d1766d2d431e30f4b33498e55d23d.tar.zst dotfiles-bsd-047f248d8f4d1766d2d431e30f4b33498e55d23d.zip |
hdd updates
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/fathddmnt | 8 | ||||
-rwxr-xr-x | .local/bin/fathddumnt | 5 | ||||
-rwxr-xr-x | .local/bin/hddmnt | 5 | ||||
-rwxr-xr-x | .local/bin/hddumnt | 2 |
4 files changed, 16 insertions, 4 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 diff --git a/.local/bin/fathddumnt b/.local/bin/fathddumnt new file mode 100755 index 0000000..8944ae1 --- /dev/null +++ b/.local/bin/fathddumnt @@ -0,0 +1,5 @@ +#!/bin/sh -e + +umount /dev/da0p1.eli +geli detach da0p1.eli +rmdir "$HOME"/hdd diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt index 126a036..242f4d0 100755 --- a/.local/bin/hddmnt +++ b/.local/bin/hddmnt @@ -2,8 +2,7 @@ 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 +dmenu -p "Enter password: " -nb '#1d2021' -nf '#1d2021' <&- >"$tmp" +geli attach -k /root/geli_keys/hdd_ext.key -j "$tmp" /dev/da0 mkdir -p "$HOME"/hdd mount /dev/da0.eli "$HOME"/hdd diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt index 548c5bd..d81d969 100755 --- a/.local/bin/hddumnt +++ b/.local/bin/hddumnt @@ -1,4 +1,4 @@ -#!/usr/local/bin/dash +#!/bin/sh -e umount /dev/da0.eli geli detach da0.eli |