summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx/scripts
diff options
context:
space:
mode:
authorJonathan Bauer2017-10-20 14:19:45 +0200
committerJonathan Bauer2017-10-20 14:19:45 +0200
commit4546e44dd51bdab0cbb7baef97fe7302f9486985 (patch)
treecd02bb3c0d0087616b004df6e0f4f6ae063debe2 /core/modules/run-virt/data/opt/openslx/scripts
parent[dnbd3-proxy] better use of $@ (diff)
downloadmltk-4546e44dd51bdab0cbb7baef97fe7302f9486985.tar.gz
mltk-4546e44dd51bdab0cbb7baef97fe7302f9486985.tar.xz
mltk-4546e44dd51bdab0cbb7baef97fe7302f9486985.zip
[run-virt] fix MAC address n°2389756902365
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/scripts')
-rwxr-xr-xcore/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env b/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env
index fcce04d6..21ec781a 100755
--- a/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env
+++ b/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env
@@ -109,8 +109,8 @@ echo "HOSTMACADDR='$HOSTMACADDR'" >> "${VMCHOOSER_VIRT_CONF}"
# If not, or the host's prefix is the last one in the list, use the first one.
# This lays the groundwork to avoid mac addresses collisions in nested operations.
MACADDRPREFIX=
-for i in $(seq 0 8); do
- if [ "x${HOSTMACADDR#00:FF:0$i}" == "x${HOSTMACADDR}" ]; then
+for i in 0 1 2 3 4 5 6 7 8; do
+ if [ "x${HOSTMACADDR#00:FF:0$i}" != "x${HOSTMACADDR}" ]; then
# current prefix is indeed part of the host's mac address
# use the next prefix if != 9
MACADDRPREFIX="00:FF:0$(( i + 1 ))"