From d3ad9bc429f7ea53adceda902cdd5db5ccc8005d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 16 Nov 2020 16:00:32 +0100 Subject: New scripts to mount geli encrypted devices --- .local/bin/hddmnt | 5 +++++ .local/bin/hddumnt | 4 ++++ 2 files changed, 9 insertions(+) create mode 100755 .local/bin/hddmnt create mode 100755 .local/bin/hddumnt 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 -- cgit v1.2.3