summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2024-07-03 18:38:03 +0200
committerSimon Rettberg2024-07-03 18:38:03 +0200
commit8e0ba90fbc04871fe0d442d9ee60eed4921c9411 (patch)
tree4e7df988f16a68187be11185ad339b72fa6e4be6 /core
parent[evdi] Fix build with latest version (diff)
downloadmltk-8e0ba90fbc04871fe0d442d9ee60eed4921c9411.tar.gz
mltk-8e0ba90fbc04871fe0d442d9ee60eed4921c9411.tar.xz
mltk-8e0ba90fbc04871fe0d442d9ee60eed4921c9411.zip
[vbox-src] Fix: Bogus warning when there's no additional NIC to bridge
Diffstat (limited to 'core')
-rwxr-xr-xcore/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env3
1 files changed, 2 insertions, 1 deletions
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