FS#4916 - Bug in initscripts 0.7.2-3
Attached to Project:
Arch Linux
Opened by Manuel Hernandez (miausX) - Friday, 30 June 2006, 08:57 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 30 June 2006, 15:50 GMT
Opened by Manuel Hernandez (miausX) - Friday, 30 June 2006, 08:57 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 30 June 2006, 15:50 GMT
|
Details
There is a bug in the shell script /usr/bin/netcfg, provided
by the initscripts-0.7.2-3 package.
When executing netcfg --menu from a VC, netcfg grabs as a profile the first file in the current working directory. This problem doesn't occur when netcfg is executed from a terminal in the X Window System like gnome-terminal or when booting the system. Since netcfg --menu is called by /etc/rc.d/network, when I have defined NET_PROFILES=(menu) in /etc/rc.conf I can't execute /etc/rc.d/network restart from a VC to reconfigure the network or to select another profile (for example). I'm not sure if I should include more info, please ask me for it if needed. Thank you. |
This task depends upon
Closed by Judd Vinet (judd)
Friday, 30 June 2006, 15:54 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks for the patch. It has been committed for the next initscripts build.
Friday, 30 June 2006, 15:54 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks for the patch. It has been committed for the next initscripts build.
So the problem was the dialog output when gpm is enabled.
I have changed the dialog output used in /usr/bin/netcfg and made a patch. Everything is working fine now (netcfg works from a VC with gpm enabled, from X and at boot time).
I have made the patch with the command:
LC_ALL=C TZ=UTC0 diff -Naur /usr/bin/netcfg /usr/bin/netcfg_new > netcfg.patch
And you can apply the patch with the command:
patch -p0 < netcfg.patch
Thanks.