support hfs and hfsplus

This commit is contained in:
cho 2023-05-08 12:12:17 +07:00
parent 7e1e4b0a99
commit a3f6de3368

View File

@ -26,6 +26,7 @@ mountusb() { \
case "$partitiontype" in
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
"exfat") sudo -A mount "$chosen" "$mp" -o uid="$(id -u)",gid="$(id -g)";;
"hfsplus"|"hfs") sudo -A mount -t hfsplus -o force,rw "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";;
*) 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."