mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
netmount: better usage info, mount nfs shares via tcp per default
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fcd270cef7
commit
0c64ab34f3
@ -32,12 +32,19 @@
|
||||
# "afp" for AFP (Apple File Protocol) mounts
|
||||
# - Please use an "|" as delimiter
|
||||
# - Don't use spaces in usernames, passwords and options
|
||||
# - for NFS mounts there is no support for options
|
||||
# - be aware of the different syntax for NFS and AFP mount
|
||||
# - be aware of the different syntax for NFS and AFP mounts
|
||||
# - Local mountpoints should only be on /storage
|
||||
#
|
||||
# Examples:
|
||||
# AFP (Apple File Protocol) mounts, please specify username and password if
|
||||
# needed.
|
||||
# afp | 192.168.1.44/videos | /storage/mount/videos | <username>:<password>
|
||||
|
||||
# CIFS (Samba/ Windows share) mounts, please specify username and password if
|
||||
# needed (comma seperated).
|
||||
# cifs | //192.168.1.44/videos | /storage/mount/videos | username=user,pass=secret
|
||||
# cifs | //192.168.1.44/tv shows | /storage/mount/tvshows | username=user,pass=secret
|
||||
# nfs | 192.168.1.44:/videos | /storage/mount/videos | ro,tcp,timeo=600
|
||||
|
||||
# NFS (Network File System) mounts, please specify additional options if needed
|
||||
# (comma seperated). Default options are 'tcp' and 'nolock'.
|
||||
# nfs | 192.168.1.44:/videos | /storage/mount/videos | ro,timeo=600
|
||||
|
@ -46,7 +46,7 @@ IFS="
|
||||
mount.cifs "$SHARE" "$MOUNTPOINT" -o "$OPTIONS" &
|
||||
;;
|
||||
nfs)
|
||||
mount "$SHARE" "$MOUNTPOINT" -o nolock,"$OPTIONS" &
|
||||
mount "$SHARE" "$MOUNTPOINT" -o nolock,tcp,"$OPTIONS" &
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user