#!/bin/bash

#----------------------------------------------------------------------------
# This script unmounts your remote share                                     |
#----------------------------------------------------------------------------

# Local mountpoint
mntpoint="/local/path"


#---------------------------------------------------------------------------------------------------------------------
fusermount -ux /mnt/user/Google/gdrive
fusermount -ux /mnt/user/Google/tdrive
fusermount -ux /mnt/user/Google/gphotos

umount gdrive:
umount tdrive:
umount gphotos:

killall rclone
killall rcloneorig

pkill rclone
pkill rcloneorig