diff options
author | Simon Rettberg | 2020-09-22 11:46:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-09-22 11:46:57 +0200 |
commit | 9e9c8d3512a18686908268733f7fa814562892e4 (patch) | |
tree | 0532e4f3e2b43a83dd145ab108004ebbf4fbe126 /core/modules/run-virt/data/opt/openslx/scripts | |
parent | [dnbd3-proxy-mode] Fix proxy mode with firewalling (diff) | |
download | mltk-9e9c8d3512a18686908268733f7fa814562892e4.tar.gz mltk-9e9c8d3512a18686908268733f7fa814562892e4.tar.xz mltk-9e9c8d3512a18686908268733f7fa814562892e4.zip |
[run-virt] fix math
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/scripts')
-rwxr-xr-x | core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env | 4 |
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 77dfa194..efc85ad3 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 @@ -141,13 +141,13 @@ MACADDRSUFFIX="$( printf "%s" "$HOSTMACADDR" | awk -F ":" '{print "%VMID%:" $(NF j=0 for CDROM in $(dmesg|grep -i "Attached scsi CD-ROM sr" | sed "s,.*Attached scsi CD-ROM ,,"); do echo "CDROM_${j}=/dev/${CDROM}" - j="$( j + 1 )" + j="$(( j + 1 ))" done j=0 for FLOPPY in $(dmesg|grep -i "Floppy drive"|sed "s,.*(s): ,,;s, is .*,,"); do echo "FLOPPY_${j}=/dev/${FLOPPY}" - j="$( j + 1 )" + j="$(( j + 1 ))" done # Serial ports |