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...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
Whiteboard: netifrc:bridge
Depends on:
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: ---


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:


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

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

        before interface macnet
        program brctl

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

        before macnet
        after interface
        program brctl

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