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#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
Task Type Bug Report
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi 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

Closed by  Judd Vinet (judd)
Tuesday, 17 August 2004, 16:10 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Friday, 16 July 2004, 19:07 GMT
Haha, right... that makes sense. *slaps forehead*
Comment by Judd Vinet (judd) - Friday, 16 July 2004, 19:12 GMT
Try this fix and see if it works:

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 $?
}
Comment by Chris Rainey (marin_linuxer) - Monday, 19 July 2004, 00:29 GMT
*
**
*** BINGO !

Thank you and apologies for not responding sooner.

Loading...