From a3f6de3368ddfd22d20bcc19094cf8398cf149a7 Mon Sep 17 00:00:00 2001 From: cho Date: Mon, 8 May 2023 12:12:17 +0700 Subject: [PATCH] support hfs and hfsplus --- home/default/.local/bin/dmenumount | 1 + 1 file changed, 1 insertion(+) diff --git a/home/default/.local/bin/dmenumount b/home/default/.local/bin/dmenumount index abeb0ce..91988c2 100755 --- a/home/default/.local/bin/dmenumount +++ b/home/default/.local/bin/dmenumount @@ -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."