From 766776bd0a06f4faf684b6ef8e09f010c4ed8977 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 12 Sep 2024 13:08:10 +0200 Subject: [vbox-src] Fix setting up bridged interfaces --- core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env b/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env index 4c5e71ef..08b0e80c 100755 --- a/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env +++ b/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env @@ -93,7 +93,7 @@ if [ "$SLX_BRIDGE_OTHER_NICS" = "yes" ]; then echo "Setting up additional bridged network interfaces" vboxnet=3 for nic in /sys/class/net/br-nic-*; do - nic="${nic#br-nic-}" + nic="${nic#*/br-nic-}" [ "$nic" = "*" ] && break if ! [ "$nic" -ge 0 ]; then slxlog "vbox-other-nics" "NaN: br-nic-X has X='$nic'" -- cgit v1.2.3-55-g7522