Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]How to disable dhcp on startup?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mrZ
n00b
n00b


Joined: 23 Dec 2008
Posts: 33

PostPosted: Sun Jan 04, 2009 9:06 pm    Post subject: [solved]How to disable dhcp on startup? Reply with quote

Hi!
I've recently installed Gentoo and I have a problem.
How to disable checking LAN network (eth0) on startup?
rc-update del dhcpcd doesn't work and I'm not sure about deleting netmount.

Regards mrZ


Last edited by mrZ on Wed Jan 07, 2009 11:34 am; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Jan 04, 2009 9:27 pm    Post subject: Reply with quote

rc-update del net.eth0

You may have to mess up your provides if you want stuff that needs "net" to work...
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
mrZ
n00b
n00b


Joined: 23 Dec 2008
Posts: 33

PostPosted: Sun Jan 04, 2009 9:35 pm    Post subject: Reply with quote

* rc-update: service `net.eth0' is not in the runlevel `default'
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Jan 04, 2009 9:43 pm    Post subject: Reply with quote

mrZ wrote:
* rc-update: service `net.eth0' is not in the runlevel `default'
rc-update show
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
mrZ
n00b
n00b


Joined: 23 Dec 2008
Posts: 33

PostPosted: Sun Jan 04, 2009 9:45 pm    Post subject: Reply with quote

Code:
local |                default               nonetwork
           vixie-cron |                default
                devfs |        sysinit
             sysklogd |                default
              keymaps |                        boot
           localmount |                        boot
                 hald |                default
         termencoding |                        boot
               net.lo |                        boot
             hostname |                        boot
             mount-ro |                             shutdown
                 root |                        boot
            savecache |                             shutdown
              modules |                        boot
             bootmisc |                        boot
              urandom |                        boot
            syslog-ng |                default
            killprocs |                             shutdown
                 mtab |                        boot
                 dbus |                default
              hwclock |                        boot
             netmount |                default
               sysctl |                        boot
                dmesg |        sysinit
          consolefont |                        boot
                 udev |        sysinit
                 fsck |                        boot
                  xdm |                default
               procfs |                        boot
                 swap |                        boot
        device-mapper |                        boot
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4433

PostPosted: Sun Jan 04, 2009 10:00 pm    Post subject: Reply with quote

/etc/rc.conf wrote:
# Some people want a finer grain over hotplug/coldplug. rc_plug_services is a
# list of services that are matched in order, either allowing or not. By
# default we allow services through as rc_coldplug/rc_hotplug has to be YES
# anyway.
# Example - rc_plug_services="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged.
rc_plug_services=""
Back to top
View user's profile Send private message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 520
Location: Swansea, UK

PostPosted: Mon Jan 05, 2009 10:10 pm    Post subject: Reply with quote

krinn: I have that in /etc/conf.d/rc. Along with this:

/etc/conf.d/rc wrote:
# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
# The following values are allowed:
# none - The 'net' service is always considered up.
# no - This basically means that at least one net.* service besides net.lo
# must be up. This can be used by notebook users that have a wifi and
# a static nic, and only wants one up at any given time to have the
# 'net' service seen as up.
# lo - This is the same as the 'no' option, but net.lo is also counted.
# This should be useful to people that do not care about any specific
# interface being up at boot.
# yes - For this ALL network interfaces MUST be up for the 'net' service to
# be considered up.

RC_NET_STRICT_CHECKING="no"


I think between those two quotes you just about have it covered, mrZ :)
_________________
splig: amd64; nForce3; sata; GeForce 6600gt agp
muttley: EFIKA 5200B - PPC SoC :)

Registered Linux User #381314
# killall humans
Back to top
View user's profile Send private message
mrZ
n00b
n00b


Joined: 23 Dec 2008
Posts: 33

PostPosted: Wed Jan 07, 2009 10:49 am    Post subject: Reply with quote

Thanks a lot it worked;]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum