From 513e7777ffb09f833f3401bfdadbd2dc2f654942 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 26 Feb 2025 14:59:44 -0700 Subject: [PATCH] network: Fix bridge interface not properly detected --- usr/local/share/bastille/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/network.sh b/usr/local/share/bastille/network.sh index cedfabaf..bcf5a971 100644 --- a/usr/local/share/bastille/network.sh +++ b/usr/local/share/bastille/network.sh @@ -421,7 +421,7 @@ case "${ACTION}" in fi fi elif [ "${BRIDGE_VNET_JAIL}" -eq 1 ]; then - if ! ifconfig | grep "${INTERFACE}" | grep -q bridge; then + if ! ifconfig -g bridge | grep -owq "${INTERFACE}"; then error_exit "\"${INTERFACE}\" is not a bridge interface." else add_interface "${TARGET}" "${INTERFACE}" "${IP}"