Mount a CIFS or NFS share#
Enable the netmount service:
rc-update add netmount defaultAdd a mount point:
rwdata.sh; mkdir /media/mmcblk0p2/library/nas; rwdata.shInstall packages:
for CIFS/SMB:
apk add cifs-utilsfor NFS:
apk add nfs-utils
Add mount point to
/etc/fstab:for CIFS/SMB:
echo "//<nas>/<music> /media/mmcblk0p2/library/nas cifs guest,gid=audio,soft,_netdev 0 0" >> /etc/fstabfor NFS:
echo "<nas>:/<music> /media/mmcblk0p2/library/nas nfs soft,_netdev 0 0" >> /etc/fstab
Mount it:
mount -aSave changes for next reboot:
save.sh
Hint#
If the share is not mounted at boot time, you can try to enable the
net-online service: rc-update add net-online boot and edit
/etc/conf.d/net-online configuration file.
Placeholders#
<nas>: name or ip address of the cifs or nfs server<music>: the share for cifs or export for nfs