Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529586 - net-misc/netifrc-0.2.2 - bridge_add_${IF} : /etc/init.d/net.br0: line 558: _exists: command not found
Summary: net-misc/netifrc-0.2.2 - bridge_add_${IF} : /etc/init.d/net.br0: line 558: _e...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard: netifrc:bridge
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-16 23:31 UTC by Dirk Tilger
Modified: 2016-10-24 19:53 UTC (History)
0 users

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 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