diff options
| author | --global <ik.boikov.public@protonmail.com> | 2021-12-30 20:32:53 +0100 |
|---|---|---|
| committer | --global <ik.boikov.public@protonmail.com> | 2021-12-30 20:32:53 +0100 |
| commit | 8667da4ba41aef6c9484eb2fb6ff7ec471708cc4 (patch) | |
| tree | c5db4609f4c29c49ce03c12868793de4e1d124e6 /scripts | |
| parent | a0c15e4e25c6605fc4b48939d26852fcc6c60a46 (diff) | |
show /media in dmnt
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/.local/bin/dmnt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/.local/bin/dmnt b/scripts/.local/bin/dmnt index 2a560d9..2df5271 100755 --- a/scripts/.local/bin/dmnt +++ b/scripts/.local/bin/dmnt @@ -17,7 +17,7 @@ getmount() { \ mountusb() { \ sudo -A mount "$1" 2>/dev/null && notify-send "USB mounting" "$1 mounted." && exit 0 alreadymounted=$(lsblk -nrpo "name,type,mountpoint" | awk '$3!~/\/boot|\/home$|SWAP/&&length($3)>1{printf "-not ( -path *%s -prune ) ",$3}') - getmount "/mnt -maxdepth 1 -type d $alreadymounted" + getmount "/mnt /media -maxdepth 1 -type d $alreadymounted" partitiontype="$(lsblk -no "fstype" "$1")" case "$partitiontype" in "vfat") sudo -A mount -t vfat "$1" "$mp" -o rw,umask=0000;; |
