mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
netmount: add support for AFP mounts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
edd75a3217
commit
4d93066542
@ -20,7 +20,7 @@
|
||||
# netmount.conf
|
||||
#
|
||||
# This configuration file allows you to setup network mounts via
|
||||
# CIFS (Samba) or NFS while the system is booting
|
||||
# CIFS (Samba), NFS or AFP while the system is booting
|
||||
#
|
||||
# This is an sample file, please rename or copy this file to
|
||||
# netmount.conf in the samba share "Configfiles" (or /storage/.config/)
|
||||
@ -28,14 +28,16 @@
|
||||
# Usage:
|
||||
# service | share on server | local mountpoint <| mount options>
|
||||
#
|
||||
# - "service" can be "nfs" for NFS mounts or "cifs" for CIFS (Samba) mounts
|
||||
# - "service" can be "nfs" for NFS mounts, "cifs" for CIFS (Samba) or
|
||||
# "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 shares
|
||||
# - be aware of the different syntax for NFS and AFP mount
|
||||
# - Local mountpoints should only be on /storage
|
||||
#
|
||||
# Examples:
|
||||
# afp | 192.168.1.44/videos | /storage/mount/videos | <username>:<password>
|
||||
# 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
|
||||
|
@ -38,6 +38,9 @@ IFS="
|
||||
|
||||
mkdir -p $MOUNTPOINT
|
||||
case "$SERVICE" in
|
||||
afp)
|
||||
mount_afp afp://$OPTIONS@$SHARE "$MOUNTPOINT" > /dev/null 2>&1 &
|
||||
;;
|
||||
cifs)
|
||||
mount.cifs "$SHARE" "$MOUNTPOINT" -o "$OPTIONS" > /dev/null 2>&1 &
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user