initial import
This commit is contained in:
parent
f8b4ed3351
commit
a8b69a8db2
35 changed files with 11590 additions and 0 deletions
21
bin/closehome.sh
Executable file
21
bin/closehome.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue