Skip to content

Commit

Permalink
Find bridge interfaces by interface group
Browse files Browse the repository at this point in the history
This allows users to give their bridges custom names.
We might make use of this as well in the future
(think $POT_BRIDGE_NAME).
  • Loading branch information
grembo committed Dec 19, 2023
1 parent c5a8ec4 commit 99a963d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- start: Fix setting of nullfs attribute
- set-status: Ignore status files that predate system boot (#278)
- set-status: Forward verbosity flags (#279)
- network: Find bridge interfaces by interface group, this allows custom bridge names (#282)

## [0.15.6] 2023-09-29
### Added
Expand Down
6 changes: 3 additions & 3 deletions share/pot/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pot_bridge()
_pot_bridge_ipv4()
{
local _bridges
_bridges=$( ifconfig | grep ^bridge | cut -f1 -d':' )
_bridges=$( ifconfig -g bridge )
if [ -z "$_bridges" ]; then
return
fi
Expand All @@ -26,7 +26,7 @@ _pot_bridge_ipv4()
_pot_bridge_ipv6()
{
local _bridges
_bridges=$( ifconfig | grep ^bridge | cut -f1 -d':' )
_bridges=$( ifconfig -g bridge )
if [ -z "$_bridges" ]; then
return
fi
Expand All @@ -43,7 +43,7 @@ _private_bridge()
{
local _bridges _bridge _bridge_ip
_bridge="$1"
_bridges=$( ifconfig | grep ^bridge | cut -f1 -d':' )
_bridges=$( ifconfig -g bridge )
if [ -z "$_bridges" ]; then
return
fi
Expand Down

0 comments on commit 99a963d

Please sign in to comment.