Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I want the old style of dhcpcd back
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
dman777
l33t
l33t


Joined: 10 Jan 2007
Posts: 982

PostPosted: Sat Dec 07, 2013 7:34 pm    Post subject: I want the old style of dhcpcd back Reply with quote

It used to be be I would do dhcpcd wlan0 and it would act like a single instance which was easy to control on my laptop. Now, with the new versions of Gentoo dhcpcd acts like a server that is a client handling multiple requests to retrieve ip leases. I hate this since I only ever use one single instance of dhcpcd. How can I get the old school behavior back with it and have it act like a single instance with verbose output?

Last edited by dman777 on Tue Dec 10, 2013 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1770

PostPosted: Sat Dec 07, 2013 8:01 pm    Post subject: Reply with quote

What does your `rc-confg show` and `ifconfig -a` say? What you used to do to start network device? (step by step, since I think it wasn't the common gentoo way and I don't understand what you want)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6756
Location: Blighty

PostPosted: Sun Dec 08, 2013 8:19 am    Post subject: Reply with quote

Just remove dhcpcd from the default runlevel

OR

add this to /etc/conf.d/dhcpcd
Code:
command_args="wlan0"

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
dman777
l33t
l33t


Joined: 10 Jan 2007
Posts: 982

PostPosted: Tue Dec 10, 2013 2:59 pm    Post subject: Reply with quote

UberLord wrote:
Just remove dhcpcd from the default runlevel

OR

add this to /etc/conf.d/dhcpcd
Code:
command_args="wlan0"


Doesn't seem to be at enabeld at the default runlevel, but it does still run automatically upon bootup:

Code:
localhost one # rc-update
             bootmisc | boot                         
                devfs |                       sysinit
              dmcrypt | boot                         
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
                local |      default                 
           localmount | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
               net.lo | boot                         
             netmount |      default                 
               procfs | boot                         
                 root | boot                         
              rsyslog |      default                 
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
         termencoding | boot                         
       tmpfiles.setup | boot                         
                 udev |                       sysinit
           udev-mount |                       sysinit
              urandom | boot                         
                  zfs |      default       


I don't want to do the
Code:
command_args="wlan0"
[/quote] because I want old behavior of dhcpcd where it would run as a single instance.


Code:
localhost one # rc-config list
Available init scripts
  alsasound                 
  bootmisc                  boot
  consolefont               
  crypto-loop               
  dbus                     
  devfs                     sysinit
  device-mapper             
  dhcpcd                   
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6756
Location: Blighty

PostPosted: Tue Dec 10, 2013 3:04 pm    Post subject: Reply with quote

Appending a single interface to the command line makes it run as single instance.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1770

PostPosted: Tue Dec 10, 2013 3:47 pm    Post subject: Reply with quote

dhcpcd is the first service in alphabetical order that provides 'net'. That's why it's started even though it's not explicitly added to default runlevel
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