own mounted drives
This commit is contained in:
parent
d53f597cc8
commit
e6af94f126
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ mountusb() { \
|
||||||
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
||||||
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;;
|
||||||
*) sudo -A mount "$chosen" "$mp";;
|
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" 741 "$mp";;
|
||||||
esac
|
esac
|
||||||
notify-send "$chosen mounted to $mp."
|
notify-send "$chosen mounted to $mp."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue