mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge pull request #165 from TomJansen/master
add vfat support to dmenumount
This commit is contained in:
commit
f48d2992fe
@ -19,7 +19,12 @@ mountusb() { \
|
|||||||
chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')"
|
chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')"
|
||||||
sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0
|
sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0
|
||||||
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
|
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
|
||||||
sudo -A mount "$chosen" "$mp" && notify-send "$chosen mounted to $mp."
|
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
||||||
|
case "$partitiontype" in
|
||||||
|
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
|
||||||
|
*) sudo -A mount "$chosen" "$mp";;
|
||||||
|
esac
|
||||||
|
notify-send "$chosen mounted to $mp."
|
||||||
}
|
}
|
||||||
|
|
||||||
mountandroid() { \
|
mountandroid() { \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user