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#24714 - [initscripts] network: querying undeclared variables from rc.conf

Attached to Project: Arch Linux
Opened by Chris Shake (cshake) - Monday, 13 June 2011, 23:12 GMT
Last edited by Tom Gundersen (tomegun) - Monday, 20 June 2011, 17:55 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In /etc/rc.d/network in ifup(), ifdown(), and possibly other functions, the script looks for a variable with the name of the interface (e.g. eth0) to determine if it is handled by dhcpcd or not. From the usage it looks like this variable is supposed to contain the arguments to be passed to ifconfig.
However, in rc.conf and /etc/conf.d/{wireless,bonding,bridges,dhcpcd} this variable is never asked for or set by default, so the script fails and any call to "/etc/rc.d/network ifup eth0" or the like just prints usage instructions for ifconfig. This is how ifplugd (and possibly other packages) attempts to bring the specified interface up after the cable is plugged in, so without any changes that script is broken.

The quick fix is to add a line like "eth0=dhcp" to /etc/rc.conf, but the script really should get the information from the combination of $interfaces and $address

Additional info:
* package version(s): 2011.06.4-1 (and previous)

Steps to reproduce:
$ sudo /etc/rc.d/network ifup eth0
up: error fetching interface information: Device not found
<output of ifconfig>
This task depends upon

Closed by  Tom Gundersen (tomegun)
Monday, 20 June 2011, 17:55 GMT
Reason for closing:  Won't fix
Comment by Tom Gundersen (tomegun) - Monday, 20 June 2011, 17:55 GMT
ifup/ifdown are deprecated. Please use "rc.d network start" instead. If that is not sufficient, move to netcfg.

We will update the warnings to make this clearer.

Loading...