encfsmount.sh
#!/bin/bash encrypted=~/.encr unencrypted=~/myplace encfs --extpass="kdialog --password 'encfs password'" $encrypted $unencrypted if mount|grep $unencrypted > /dev/null 2>&1; then kdialog --title "Mounted :)" --passivepopup "$unencrypted mounted succesfully" 10 else kdialog --error "$unencrypted not mounted :(" fi
encfsumount.sh
#!/bin/bash unencrypted=~/myplace fusermount -u $unencrypted if mount|grep $unencrypted > /dev/null 2>&1; then kdialog --error "$unencrypted NOT unmounted :(" else kdialog --title "Unmounted :)" --passivepopup "$unencrypted unmounted succesfully" 10 fi
Add those two scripts to autostart in KDE (or to your launcher/desktop icons if you prefer to mount/unmount it manually):
It will ask for the password when mounting:
When successful, the notification in the corner should appear:
Brak komentarzy:
Prześlij komentarz