Skip to content

Instantly share code, notes, and snippets.

@philcryer
Created August 12, 2012 17:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save philcryer/3333056 to your computer and use it in GitHub Desktop.
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
#! /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) &
@homasholz
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment