Created
August 12, 2012 17:11
-
-
Save philcryer/3333056 to your computer and use it in GitHub Desktop.
An example /storage/.config/autostart.sh to do NFS mounting on boot for Raspberry Pi running OpenELEC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
(sleep 5; | |
mount -t nfs 192.168.1.6:/home/media/games -o rw,nolock,tcp,soft,posix,noatime,nodiratime,timeo=600,actimeo=0,nfsvers=3,async,rsize=131072,wsize=131072 /storage/games | |
mount -t nfs 192.168.1.6:/export/music -o rw,nolock,tcp,soft,posix,noatime,nodiratime,timeo=600,actimeo=0,nfsvers=3,async,rsize=131072,wsize=131072 /storage/music | |
mount -t nfs 192.168.1.6:/export/videos -o rw,nolock,tcp,soft,posix,noatime,nodiratime,timeo=600,actimeo=0,nfsvers=3,async,rsize=131072,wsize=131072 /storage/videos) & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry I am a beginner, what exactly does the "(" and the ";" in second line do?
Wouldn't it work with just "sleep 5"?
Thank you!