initial import

This commit is contained in:
tengel 2024-03-20 11:16:48 -05:00
parent f8b4ed3351
commit a8b69a8db2
35 changed files with 11590 additions and 0 deletions

21
bin/closehome.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
_LUKS=chome
_MOUNT=/home
# mount
if mountpoint -q ${_MOUNT}; then
sudo umount ${_MOUNT}
if mountpoint -q ${_MOUNT}; then
echo "umount failed"
exit 1
fi
fi
# LUKS
if [[ -e /dev/mapper/${_LUKS} ]]; then
sudo cryptsetup luksClose ${_LUKS}
if [[ -e /dev/mapper/${_LUKS} ]]; then
echo "luksClose failed"
exit 1
fi
fi