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#3401 - The network-profiles menu selects a network-profile named "bin" no matter what is selected
Attached to Project:
Arch Linux
Opened by Luke Hoersten (lhoerste) - Sunday, 30 October 2005, 02:28 GMT
Last edited by Judd Vinet (judd) - Tuesday, 01 November 2005, 20:24 GMT
Opened by Luke Hoersten (lhoerste) - Sunday, 30 October 2005, 02:28 GMT
Last edited by Judd Vinet (judd) - Tuesday, 01 November 2005, 20:24 GMT
|
DetailsThe network-profile menu always tries to load /etc/network-profiles/bin no matter what I select in the menu. If that profile doesn't exist, its hard to see the error whiel the boot process is scrolling past and you wont have internet.
|
This task depends upon
Closed by Judd Vinet (judd)
Wednesday, 07 December 2005, 18:30 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed by the latest GPM package.
Wednesday, 07 December 2005, 18:30 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed by the latest GPM package.
ANSWER=`mktemp`
if [ "$TIMEOUT" != "" ]; then
dialog \
--timeout $TIMEOUT \
--default-item $DEFAULT \
--menu "Select the network profile you wish to use\n\n (timeout in $TIMEOUT seconds)" \
13 50 6 \
"${profiles[@]}" 2>$ANSWER
ret=$?
else
dialog \
--default-item $DEFAULT \
--menu "Select the network profile you wish to use" \
13 50 6 \
"${profiles[@]}" 2>$ANSWER
ret=$?
fi
At boot $ANSWER is wrong. When I restart network (/etc/rc.d/network restart) sometimes It's correct, sometimes not (and not always ATI-LICENSE.txt..). If I don't use "menu" but I put a network profiles name in /etc/rc.conf It always works.
I hope to have been useful, archlinux is great! Bye bye
Strabla Ruggero (Ermak)
[root@orion ~]# ls /etc/network-profiles/
Casa Crema template
[root@orion ~]#
I can confirm that the problem appears on boot time, when the system is up and I restart network It usually works.
My profiles and rc.conf is attached.
ANSWER=`mktemp` || exit 1
1)Upgrading gpm (and dialog) to last version (see http://bugs.archlinux.org/task/3568). That version contain a patch that, correctly, doesn't redirect to stderr a debug message when a dialog is launched. In old version of gpm, in the file created by mktemp there was that debug message (... 2>$ANSWER) plus the profile name, instead of only profile name.
2)With old version of gpm, It possible to work around the stderr problem lauching dialog with --stdout option and redirect stdout to $ANSWER: "${profiles[@]}" >$ANSWER
Bye bye.
I'll close this bug now.