From 8e0ba90fbc04871fe0d442d9ee60eed4921c9411 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 3 Jul 2024 18:38:03 +0200 Subject: [vbox-src] Fix: Bogus warning when there's no additional NIC to bridge --- core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') 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 a1711f0a..4c5e71ef 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,8 @@ 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##*-}" + nic="${nic#br-nic-}" + [ "$nic" = "*" ] && break if ! [ "$nic" -ge 0 ]; then slxlog "vbox-other-nics" "NaN: br-nic-X has X='$nic'" continue -- cgit v1.2.3-55-g7522