Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11796 closed enhancement (fixed)

BLFS Boot Scripts: allow bridge without INTERFACE_COMPONENTS

Reported by: Tim Tassonis Owned by: Bruce Dubbs
Priority: normal Milestone: 9.0
Component: Bootscripts Version: SVN
Severity: normal Keywords:
Cc:

Description

For network bridges consisting only of virtual (openvpn, qemu) or wlan interfaces not handled at boot, it can be desirable to create a bridge without any INTERFACE_COMPONENTS.

The bridge can then still be brought up with the IP and referred to in iptables etc.

The attached version of blfs/services/bridge just issues a warning when no INTERFACE_COMPONENTS are defined and skips the bits where the components are added to and removed from the bridge. I have tested the script both for bridges with and without INTERFACE_COMPONENTS, it seems to run fine.

Attachments (1)

bridge (1.8 KB ) - added by Tim Tassonis 5 years ago.
adjusted version of blfs/services/bridge, to allow for bridges without pre-defined interfaces

Download all attachments as: .zip

Change History (7)

comment:1 by Bruce Dubbs, 5 years ago

I can do that with a couple of tweaks. Give me a day or two.

comment:2 by Tim Tassonis, 5 years ago

No problem. However, the version I attached to the ticket has an error. Will update the attachment in a minute.

by Tim Tassonis, 5 years ago

Attachment: bridge added

adjusted version of blfs/services/bridge, to allow for bridges without pre-defined interfaces

comment:3 by Tim Tassonis, 5 years ago

Just fixed the script. I wrongly remembered the check for a non-empty string to be [ -s .. ], while it is in fact [ -n ...].

comment:4 by Bruce Dubbs, 5 years ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:5 by Bruce Dubbs, 5 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 21321.

comment:6 by Bruce Dubbs, 5 years ago

Milestone: 8.59.0

Milestone renamed

Note: See TracTickets for help on using tickets.