summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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