Actualiser coffre

This commit is contained in:
Xavier 2023-09-27 09:48:14 +02:00
parent 2e1363cbe1
commit 3aa6ef7fc1

4
coffre
View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
clear clear
sudo modprobe fuse sudo modprobe fuse
rep="/home/xavier/" rep="/home/$USER/"
rep1=$rep".encrypted" rep1=$rep".encrypted"
rep2=$rep"decrypted" rep2=$rep"decrypted"
file="/media/xavier/SECURE/passphrase.bin" file="/media/$USER/SECURE/passphrase.bin"
#Close Coffre fort numérique #Close Coffre fort numérique
if [ "$1" = "close" ] && [ ! -f "$rep2" ] if [ "$1" = "close" ] && [ ! -f "$rep2" ]