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#3981 - rc.conf/network init script unable to cope with rename network interfaces containing '-'
Attached to Project:
Arch Linux
Opened by Laurence Hurst (Loz_hurst) - Thursday, 16 February 2006, 14:59 GMT
Opened by Laurence Hurst (Loz_hurst) - Thursday, 16 February 2006, 14:59 GMT
|
DetailsI renamed my two network interfaces to 'eth-nv' and 'eth-marv' using udev rules, and then modified rc.conf to relect these changes. I rebooted, but the interfaces did not come up. Manually running /etc/rc.d/network restart gives:
[14:42][root@sovereign laurence]# /etc/rc.d/network restart /etc/rc.conf: line 58: eth-nv=dhcp: command not found /etc/rc.conf: line 59: eth-marv=dhcp: command not found /etc/rc.conf: line 58: eth-nv=dhcp: command not found /etc/rc.conf: line 59: eth-marv=dhcp: command not found /etc/rc.conf: line 58: eth-nv=dhcp: command not found /etc/rc.conf: line 59: eth-marv=dhcp: command not found :: Stopping Network [BUSY] ifconfig: option `-marv' not recognised. ifconfig: `--help' gives usage information. [FAIL] /etc/rc.conf: line 58: eth-nv=dhcp: command not found /etc/rc.conf: line 59: eth-marv=dhcp: command not found :: Starting Network [DONE] the relevent lines from rc.conf are: eth-nv="dhcp" eth-marv="dhcp" INTERFACES=(lo !eth-nv eth-marv) renaming the interfaces to eth_nv and eth_marv works fine. Escaping the '-' with a \ or enclosing the iface names in quotes has no effect, so it seems to be a bug with the init scripts not coping with hyphens in interface names (udev likes it, and it works as expected on my debian system) I hope it's not just me being special. |
This task depends upon
[jvinet@mars ~]$ a-b="test"
bash: a-b=test: command not found
[jvinet@mars ~]$ a="test"
[jvinet@mars ~]$
No hyphens allowed. :( I can add a note about it in rc.conf.