Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ###############################################################################
- . ${HOME}/.config/PlexACD/plexacd.conf
- . "$(dirname $0)/plexacd.sh"
- export ENCFS6_CONFIG="$encfs_cfg"
- log "Checking FUSE filesystems."
- if mountpoint -q $remotecrypt; then
- log "Encrypted ACD filesystem already mounted. Remounting now!"
- fusermount -uz $remotecrypt
- else
- log "Encrypted ACD filesystem not nmounted. Mounting now!"
- fi
- $rclonebin mount --read-only --timeout=30s ${remotename}:${acdsubdir} "$remotecrypt" &
- if mountpoint -q $remotedecrypt; then
- log "Decrypted ACD filesystem already mounted. Remounting now!"
- fusermount -uz $remotedecrypt
- else
- log "Decrypted ACD filesystem not nmounted. Mounting now!"
- fi
- encfs --extpass="echo $encfs_pass" $remotecrypt $remotedecrypt
- #if mountpoint -q $localdecrypt; then
- # log "Decrypted local filesystem already mounted. Remounting now!"
- # fusermount -uz $localdecrypt
- #else
- # log "Decrypted local filesystem not nmounted. Mounting now!"
- #fi
- #encfs --extpass="echo $encfs_pass" $localcrypt $localdecrypt
- #if mountpoint -q $mediadir; then
- # log "Union filesystem already mounted. Remounting now!"
- # fusermount -uz $mediadir
- #else
- # log "Union filesystem not nmounted. Mounting now!"
- #fi
- #${ufsbin} -o cow ${localdecrypt}=RW:${remotedecrypt}=RO $mediadir -o allow_root
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement