Date: Sun, 31 Oct 2010 20:20:12 +0100 From: Polytropon <freebsd@edvax.de> To: Tim Dunphy <bluethundr@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: can't add entries to fsab Message-ID: <20101031202012.063ecf7b.freebsd@edvax.de> In-Reply-To: <AANLkTiniP2nPLTc4cj8Y569UfVyGryR8LqT3bx=jhQaH@mail.gmail.com> References: <AANLkTikS7vt8zFD-4hvTqpf27%2BHED4GWL34PfNYYG9s5@mail.gmail.com> <alpine.BSF.2.00.1010301805490.6585@wonkity.com> <AANLkTikmtnU%2B%2BjepVwd-=rv4b6QTq5eLpK2mRa9LSrWe@mail.gmail.com> <alpine.BSF.2.00.1010310955360.9357@wonkity.com> <AANLkTiniP2nPLTc4cj8Y569UfVyGryR8LqT3bx=jhQaH@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 31 Oct 2010 12:11:31 -0400, Tim Dunphy <bluethundr@gmail.com> wrote: > Actually this machine isn't on DHCP, it's statically assigned. My > basic goal is to get the box to the point where it can resolve DNS > before it mounts the contents of /etc/fstab... In case the interface is already up at mount time, you can maybe use the /etc/hosts mechanisms to assign hostnames to the IPs you're refering to in /etc/fstab, so you can use hostnames or aliases there which will then automatically be resolved. > do you have any suggestions on how best to achieve this goal? You can write your own "NFS mount wrapper" and place it into /usr/local/etc/rc.d; use a template from /etc/rc.d and check the keywords for REQUIRE that you'll need (references to interfaces and maybe routing). Then add a _enable="YES" for your script in /etc/rc.conf and it will be started by the system when the requirements (indicated by keywords) are met. There is no need to exactly define this as a point in time in a given order. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101031202012.063ecf7b.freebsd>