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!
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!
FS#1135 - Bug #756 -- still no-workie
Attached to Project:
Arch Linux
Opened by Chris Rainey (marin_linuxer) - Friday, 16 July 2004, 19:06 GMT
Last edited by Eric Johnson (eric) - Wednesday, 21 July 2004, 12:18 GMT
Opened by Chris Rainey (marin_linuxer) - Friday, 16 July 2004, 19:06 GMT
Last edited by Eric Johnson (eric) - Wednesday, 21 July 2004, 12:18 GMT
|
DetailsHi Judd,
Thanks for altering the rc.d/network script. The result, now, is that when the ifline() fails to find the PID and moves to the next line, it hands the term "dhcp" to the ifdown since the result of $new_ifline _does_ actually parse to 'dhcp'. Obviously this fails with a 'No device 'dhcp' found'. Is there a way to pass the $1 variable to the ifdown? $1 in this case would equal 'eth0'. Let me know if you need more info -- we're sooo close to resolution. Thanx !! |
This task depends upon
ifdown()
{
if [ "$1" = "" ]; then
echo "usage: $0 ifdown <interface_name>"
return 1
fi
varname="\$${1}"
eval new_ifline=$varname
if [ "$new_ifline" = "dhcp" ]; then
if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then
/bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
else
# No .pid file, just bring the interface itself down
/sbin/ifconfig $1 down
fi
else
/sbin/ifconfig $new_ifline down
fi
return $?
}
**
*** BINGO !
Thank you and apologies for not responding sooner.