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

Bug 529586

Summary: net-misc/netifrc-0.2.2 - bridge_add_${IF} : /etc/init.d/net.br0: line 558: _exists: command not found
Product: Gentoo Linux Reporter: Dirk Tilger <dirk>
Component: [OLD] Core systemAssignee: netifrc Team <netifrc>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: netifrc:bridge
Package list:
Runtime testing required: ---

Description Dirk Tilger 2014-11-16 23:31:02 UTC
For the following /etc/conf.d/net, I can't get the bridge up through /etc/init.d/br0:

-----8<-----
config_br0="null"
bridge_add_eth0="br0"
brctl_br0=""
-----8<-----

-----8<-----
bridge0 sbin # /etc/init.d/net.br0 start
 * Caching service dependencies ...
 [ ok ]
 * Bringing up interface br0
/etc/init.d/net.br0: line 558: _exists: command not found
 *   ERROR: interface br0 does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.br0 failed to start
-----8<-----

The _exists function comes with "interface", however /lib/netifrc/net/bridge.sh defines:

-----8<-----
bridge_depend()
{
        before interface macnet
        program brctl
}
-----8<-----

This means "interface" is loaded *after* bridge. Setting the load order instead to...

-----8<-----
bridge_depend()
{
        before macnet
        after interface
        program brctl
}
-----8<-----

... fixes the issue for me, but then I suppose all the people who initialise the hardware device first and then the bridge have a problem.

Reproducible: Always

Steps to Reproduce:
1. Set the /etc/conf.d/net from the description
2. Start the bridge with /etc/init.d/net.br0 start
Actual Results:  
Error shown above

Expected Results:  
Bridge starts successfully