Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1183 - [rc.conf] need to pass options to dhcpcd

Attached to Project: Arch Linux
Opened by Chris Rainey (marin_linuxer) - Saturday, 24 July 2004, 18:38 GMT
Last edited by Judd Vinet (judd) - Tuesday, 27 July 2004, 15:19 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi

In a moment of lapsed judgement, I installed Gentoo to see what they're up to. <gasp> ... Indeed, I noted that their network config script had a very useful section for adding options to the dhcpcd call. I think this would be a valuable addition to Arch's rc.conf for those of us using dhcp with ntpd. Namely, the dhcpcd option '-N' which prevents dhcpcd from overwriting the default(and possibly customized) /etc/ntp.conf script. The -N option prevents the default behavior of dhcpcd from clobbering the existing ntp.conf with time server info it may or may not recieve from the dhcp server. Again, those of us with consumer router's, which don't provide this info, get our ntp.conf pounced at startup by this behavior. Here is the snip'd section from Gentoo's '/etc/conf.d/net' script:

##############################################################################
# NEW-STYLE IFCONFIG examples
# ---------------------------
# This uses /sbin/ifconfig and /sbin/route to set the network up.
# It is suitable for most home users.
##############################################################################

# To use DHCP on eth0, simply uncomment the following line:

ifconfig_eth0=( "dhcp" )

# 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. Note that this might be too short for some servers, so the default is encouraged unless you know what you're doing.

dhcpcd_eth0="-N -t 10"
This task depends upon

Closed by  Judd Vinet (judd)
Tuesday, 23 November 2004, 23:03 GMT
Reason for closing:  Implemented
Comment by Judd Vinet (judd) - Tuesday, 23 November 2004, 23:03 GMT
There is now a /etc/conf.d/dhcpcd file where you can set this.

Loading...