mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Show label or device if mounted by fstab
This commit is contained in:
parent
ab889e8d5e
commit
bbf641e8f9
@ -23,7 +23,7 @@ mountusb() { \
|
|||||||
eval declare -A devices=($hmap)
|
eval declare -A devices=($hmap)
|
||||||
chosen=${devices["$device"]}
|
chosen=${devices["$device"]}
|
||||||
|
|
||||||
sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$chosen mounted." && exit 0
|
sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$device mounted." && exit 0
|
||||||
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
|
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
|
||||||
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
||||||
case "$partitiontype" in
|
case "$partitiontype" in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user