Add ntfs mounting support

Additional support for mounting ntfs filesystem drives. Would require adding ntfs-3g to dependencies though I'm not sure where such a list is in LARBS.
This commit is contained in:
maxim-h 2019-12-14 23:08:41 +03:00 committed by GitHub
parent fc3aae4235
commit 70a3402439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ mountusb() { \
partitiontype="$(lsblk -no "fstype" "$chosen")"
case "$partitiontype" in
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
"ntfs") sudo -A ntfs-3g "$chosen" "$mp" -o rw,umask=0000;;
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";;
esac
notify-send "💻 USB mounting" "$chosen mounted to $mp."