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#1206 - let user specify options for dhcpcd in rc.d/network

Attached to Project: Arch Linux
Opened by Mark Hollomon (markhh) - Friday, 30 July 2004, 01:52 GMT
Task Type Feature Request
Category Packages: Current
Status Closed
Assigned To No-one
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

Here is a patch to /etc/rc.d/network to allow the user to specify options for the dhcpcd call in /etc/rc.d/network. I use this to add the '-N' option so it doesn't mess with my ntpd setup.

--- network.orig 2004-07-29 18:49:28.000000000 -0400
+++ network 2004-07-29 18:48:04.000000000 -0400
@@ -3,6 +3,9 @@
. /etc/rc.conf
. /etc/rc.d/functions

+DHCPCD_ARGS=
+[ -f /etc/conf.d/network.conf ] && . /etc/conf.d/network.conf
+
ifup()
{
if [ "$1" = "" ]; then
@@ -14,7 +17,7 @@
if [ "$new_ifline" = "dhcp" ]; then
# remove the .pid file if it exists
rm -f /etc/dhcpc/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1
- /usr/sbin/dhcpcd -t 10 -h $HOSTNAME $1
+ /usr/sbin/dhcpcd -t 10 ${DHCPCD_ARGS} -h $HOSTNAME $1
else
/sbin/ifconfig $new_ifline
fi
This task depends upon

Closed by  Judd Vinet (judd)
Friday, 30 July 2004, 22:10 GMT
Reason for closing:  Duplicate
Comment by Mark Hollomon (markhh) - Friday, 30 July 2004, 01:59 GMT
Arg. Right after opening this task, I noticed this already existing task:

Task #1183 — [rc.conf] need to pass options to dhcpcd

And being able to set it per interface would be better.

Ignore this task.

Loading...