Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34827 - /etc/init.d/net.X does not support ifconfig localisations
Summary: /etc/init.d/net.X does not support ifconfig localisations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 50039 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-01 07:12 UTC by Panard
Modified: 2004-05-07 15:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Panard 2003-12-01 07:12:10 UTC
in net init script: 
status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Link/ { if ($1 == 
IFACE) print "up" }')" 
 
but my ifconfig return somethink like: 
eth0      Lien encap:Ethernet  HWaddr 00:0B:DB:02:9C:61   
..... 
 
(I'm french) 
 
So the status couldn't be "up": 
$ ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Link/ { if ($1 == IFACE) print 
"up" }' 
> #nothing 
$ ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Lien/ { if ($1 == IFACE) print 
"up" }' 
> up 
 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Panard 2003-12-01 11:16:34 UTC
A way to resolve this: 
status_IFACE="$(LANG='en' ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Link/ { if ($1 == 
IFACE) print "up" }')" 
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-05-06 19:32:33 UTC
fixed in rc-scripts cvs.  This will be fixed in the next release of baselayout
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-06 19:59:15 UTC
*** Bug 50039 has been marked as a duplicate of this bug. ***
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-05-07 15:31:12 UTC
okay, baselayout-1.9.0 is in portage