netmount: better usage info, mount nfs shares via tcp per default

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-07-29 23:57:00 +02:00
parent fcd270cef7
commit 0c64ab34f3
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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