mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 313d2598171a8f6dcc400bfa16e8c2193ea53164
parent ec8496933a93176b96e04823e2b60dc9e30c80bc
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  4 May 2022 22:53:46 +0200

mounting home

Diffstat:
luks_mount | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/luks_mount b/luks_mount @@ -13,7 +13,12 @@ fi ID=$(duuid "$VOLUME") KEY="$HOME/credentials/$VOLUME.key" -FOLDER="/mnt/$VOLUME" +if echo "$VOLUME" | grep '_home$' > /dev/null +then + FOLDER="/home" +else + FOLDER="/mnt/$VOLUME" +fi if [ -f "$KEY" ] then