From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-53767-garchives=archives.gentoo.org@gentoo.org>) id 1GdWti-0001Eo-Nm for garchives@archives.gentoo.org; Fri, 27 Oct 2006 18:57:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9RItI07028563; Fri, 27 Oct 2006 18:55:18 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9RIpVkk022375 for <gentoo-user@lists.gentoo.org>; Fri, 27 Oct 2006 18:51:31 GMT Received: by nf-out-0910.google.com with SMTP id p46so2003630nfa for <gentoo-user@lists.gentoo.org>; Fri, 27 Oct 2006 11:51:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XSk+mOpW79U3wTMLZ87MSg1M2gG7eSaLKLAGhKgqHZRYIpN00D/8r35+vNc3jIm8NWh/XPFZCcEEidtL61SZycdmJiFADMejgHFgb189TwzAuJ8VlIui/3D7+LWRXRP+9nURglpVw2n0sajkOTLAsL5MJWi3EI6pxHoyHMn6CQU= Received: by 10.82.98.13 with SMTP id v13mr1716902bub; Fri, 27 Oct 2006 11:51:30 -0700 (PDT) Received: by 10.82.106.3 with HTTP; Fri, 27 Oct 2006 11:51:30 -0700 (PDT) Message-ID: <7573e9640610271151m5053d729x128d74b8274f31f0@mail.gmail.com> Date: Fri, 27 Oct 2006 11:51:30 -0700 From: "Richard Fish" <bigfish@asmallpond.org> Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Editing /etc/init.d/net.eth0 to pass options to dhcpcd In-Reply-To: <1161974419.12353.6.camel@camille.gateway.2wire.net> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1161974419.12353.6.camel@camille.gateway.2wire.net> X-Google-Sender-Auth: 731499aa94157ee1 X-Archives-Salt: 8e267844-432a-49c4-b6af-ad9758198567 X-Archives-Hash: 555b535056d3f1b65f1682e0d5b0497f On 10/27/06, Michael Sullivan <michael@espersunited.com> wrote: > Is there a way that I can edit /etc/init.d/net.eth0 so that when it > calls dhcpcd to get an IP address, it doesn't overwrite my domain name > or my /etc/resolv.conf file? I looked at /etc/init.d/net.eth0, but > could not find anyplace where it actually called dhcpcd... The actual call to dhcpcd is in /lib/rcscripts/net/dhcpcd.sh. But you really don't want to edit that script. You should read /etc/conf.d/net.example. If you *really* want direct control over the dhcpcd options: ------- # For passing custom options to dhcpcd use something like the following. This # example reduces the timeout for retrieving an address from 60 seconds (the # default) to 10 seconds. #dhcpcd_eth0="-t 10" ------ But, probably what you really want is the generic "nodns" option: ------ # GENERIC DHCP OPTIONS # Set generic DHCP options like so #dhcp_eth0="release nodns nontp nonis nogateway nosendhost" # This tells the dhcp client to release it's lease when it stops, not to # overwrite dns, ntp and nis settings, not to set a default route and not to # send the current hostname to the dhcp server and when it starts. # You can use any combination of the above options - the default is not to # use any of them. ------ -Richard -- gentoo-user@gentoo.org mailing list