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#756 - network stop fail with dhcp

Attached to Project: Arch Linux
Opened by Maurizio Frigerio (naph) - Thursday, 15 April 2004, 16:18 GMT
Last edited by Judd Vinet (judd) - Friday, 16 April 2004, 01:15 GMT
Task Type Bug Report
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

"/etc/rc.d/network stop" always gives a FAILED message
i use "eth0=dhcp" in rc.conf, and think the problem is that dhcpcd doesn't generate /etc/dhcpc/dhcpcd-eth0.pid

ifdown()
{
varname="\$${1}"
eval new_ifline=$varname
if [ "$new_ifline" = "dhcp" ]; then
[ -f /etc/dhcpc/dhcpcd-${1}.pid ] && \
/bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
else
/sbin/ifconfig $new_ifline down
fi
return $?
}

Removing the command which kill the process obviuosly lead to "DONE" message
This task depends upon

Closed by  Judd Vinet (judd)
Friday, 16 July 2004, 03:02 GMT
Reason for closing:  Fixed
Comment by Chris Rainey (marin_linuxer) - Wednesday, 14 July 2004, 22:47 GMT
Hi Judd,

This is actually the same bug that I reported back as BUG #216. I can see that the ifdown() has been rewritten, however, it still does not account for 'consumer' router's (Linksys, SMC, D-Link) that hand-out 'infinite' IP leases. I'm not sure how to re-write the (), but, perhaps you could make it run the 'ifconfig $1 down' even if the $new_ifline="dhcp", BUT the pid is not found.

These router's don't typically allow the adjustment of the lease time.

Thanks.
Comment by Judd Vinet (judd) - Friday, 16 July 2004, 03:00 GMT
Okay, I've added the change for the next revision of initscripts.

Loading...