Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 304745

Summary: sys-apps/baselayout-1.12.13: net.lo: interface_device() does not handle multidot names correctly
Product: Gentoo Linux Reporter: Andreas Kinzler <akinzler>
Component: [OLD] baselayoutAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: tommy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Kinzler 2010-02-12 16:57:57 UTC
the original interface_device() does not handle iface names like "eth.dsl0.7" correctly. I replaced it by this 

interface_device() {
	local dev="$1"
	[[ "${dev}" =~ ^(.*)[.:][0-9]+$ ]] && dev="${BASH_REMATCH[1]}"
	echo "${dev}"
}


Reproducible: Always

Steps to Reproduce:
Comment 1 Thomas Sachau gentoo-dev 2010-03-12 14:22:02 UTC
Please attache your "emerge --info", "emerge -pv baselayout" and what exactly your error/problems are or have been.
Comment 2 Pacho Ramos gentoo-dev 2010-03-23 20:48:11 UTC
(In reply to comment #1)
> Please attache your "emerge --info", "emerge -pv baselayout" and what exactly
> your error/problems are or have been.
> 

Please get back to us and reopen then