diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-08-04 10:13:28 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-08-04 10:13:28 -0400 |
| commit | ae185dc3b18d470c664bc80b10ae797ec42786a8 (patch) | |
| tree | e434ff9aa4e9be14a4d64a393cf5d47d005611dd /.local/bin/dmenumountcifs | |
| parent | 20a03e90626f299218c497b9f407a779c8a6220c (diff) | |
| parent | 4589bb0a8b04473ccc0c027c0ba835acdf289689 (diff) | |
| download | eibhear-ae185dc3b18d470c664bc80b10ae797ec42786a8.tar.gz eibhear-ae185dc3b18d470c664bc80b10ae797ec42786a8.tar.zst eibhear-ae185dc3b18d470c664bc80b10ae797ec42786a8.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice into master
Diffstat (limited to '.local/bin/dmenumountcifs')
| -rwxr-xr-x | .local/bin/dmenumountcifs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/dmenumountcifs b/.local/bin/dmenumountcifs index 99be72f..46c2b57 100755 --- a/.local/bin/dmenumountcifs +++ b/.local/bin/dmenumountcifs @@ -1,5 +1,5 @@ #!/bin/sh -# Gives a dmenu prompt to mount unmounted local NAS shares. +# Gives a dmenu prompt to mount unmounted local NAS shares for read/write. # Requirements - "%wheel ALL=(ALL) NOPASSWD: ALL" # # Browse for mDNS/DNS-SD services using the Avahi daemon... @@ -12,7 +12,7 @@ share2mnt=//"$srvname".local/"$share" sharemount() { mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && sudo mkdir /mnt/"$share") - [ -z "$mounted" ] && sudo mount -t cifs "$share2mnt" -o user=nobody,password="" /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0 + [ -z "$mounted" ] && sudo mount -t cifs "$share2mnt" -o user=nobody,password="",noperm /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0 notify-send "Netshare $share already mounted"; exit 1 } |
