Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176573 - baselayout-2: cryptic error message when network interface does not exist
Summary: baselayout-2: cryptic error message when network interface does not exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-30 13:24 UTC by Daniel Drake (RETIRED)
Modified: 2007-05-04 15:37 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 Daniel Drake (RETIRED) gentoo-dev 2007-04-30 13:24:32 UTC
Seemant found that doing "/etc/init.d/net.ath0 start" when there is no ath0 interface on the system results in a cryptic bash error.

I think this is because _ifindex() in the ifconfig module returned an empty string. Then the following calculation in start() failed:

		metric=$((${metric} + $(_ifindex)))

I guess there should be some earlier check for interface existence. This was with baselayout-2.0.0_alpha1
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:37:15 UTC
Fixed in baselayout-2.0.0_alpha2