diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-16 16:00:32 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-16 16:00:32 +0100 |
commit | d3ad9bc429f7ea53adceda902cdd5db5ccc8005d (patch) | |
tree | 69edb4772b212df00d034a52bd0346c01ede355c /.local/bin | |
parent | Linkview update (diff) | |
download | dotfiles-bsd-d3ad9bc429f7ea53adceda902cdd5db5ccc8005d.tar.gz dotfiles-bsd-d3ad9bc429f7ea53adceda902cdd5db5ccc8005d.tar.bz2 dotfiles-bsd-d3ad9bc429f7ea53adceda902cdd5db5ccc8005d.tar.xz dotfiles-bsd-d3ad9bc429f7ea53adceda902cdd5db5ccc8005d.tar.zst dotfiles-bsd-d3ad9bc429f7ea53adceda902cdd5db5ccc8005d.zip |
New scripts to mount geli encrypted devices
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/hddmnt | 5 | ||||
-rwxr-xr-x | .local/bin/hddumnt | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt new file mode 100755 index 0000000..2f545ca --- /dev/null +++ b/.local/bin/hddmnt @@ -0,0 +1,5 @@ +#!/bin/sh + +geli attach -k /root/geli_keys/hdd_ext.key /dev/da0 && + mount /dev/da0.eli /media && + chown -R jozan:jozan /media diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt new file mode 100755 index 0000000..0d0f6a0 --- /dev/null +++ b/.local/bin/hddumnt @@ -0,0 +1,4 @@ +#!/bin/sh + +umount /dev/da0.eli && + geli detach da0.eli |