support hfs and hfsplus
This commit is contained in:
parent
7e1e4b0a99
commit
a3f6de3368
@ -26,6 +26,7 @@ mountusb() { \
|
|||||||
case "$partitiontype" in
|
case "$partitiontype" in
|
||||||
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
|
"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)";;
|
"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";;
|
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";;
|
||||||
esac
|
esac
|
||||||
notify-send "💻 USB mounting" "$chosen mounted to $mp."
|
notify-send "💻 USB mounting" "$chosen mounted to $mp."
|
||||||
|
Loading…
Reference in New Issue
Block a user