* Stan Brown ([EMAIL PROTECTED]) [011008 09:37]: > On Mon Oct 8 11:46:37 2001 Raghavendra Bhat wrote... > > > >[Mon, Oct 08, 2001 at 10:41:11AM -0400] Stan Brown : > > > >> Now the machine tries to do dhcp! Which I don't wnat. > >> > >> Where can I turn this off? > > > >Either do a 'dpkg --purge dhcp/dhcp-client/dhcpcd' or better still > >remove instances of the dhcp symlink from all run-levels by doing an > >'update-rc.d -f dhcp remove'. > > > > Hmm, I did that, and as son as I set the executable bit on > /etc/dhclient-script, and rebooted, it grabed dynamic address again. > > I'm poking around in /etc/init.d/dhcp-clinet, and I'm puzzled by this line: > > > > # If /etc/network/interfaces exists, and there is a line that contains > # something like "iface lec0 inet dhcp" then we should not be > # doing anything here. > if [ -f /etc/network/interfaces ]; then > grep -q '^iface.*dhcp' /etc/network/interfaces && exit 0 > fi > > > This seems backwards to me. But I checked it on 2 differnt systems. > > What am I missing here?
Well, the comment does match the code. It looks like dhcp-client knows to back off if you're specifying dhcp interfaces in /etc/network/interfaces, because the 'ifup -a' command will bring these up from /etc/init.d/networking. I don't have dhcp-client on this machine to see how it really works, though, so maybe you shouldn't take my word for it. good times, -- Vineet http://www.anti-dmca.org Unauthorized use of this .sig may constitute violation of US law. echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'
pgpgbFdGB5qkV.pgp
Description: PGP signature