Unverified Commit f24ba419 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Convert dashes in custom MAC addresses (#626)

parent f412580a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -216,7 +216,8 @@ getInfo() {
    VM_NET_MAC=$(echo "$HOST" | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:11:32:\3:\4:\5/')
  fi

  VM_NET_MAC="${VM_NET_MAC,,//-/:}"
  VM_NET_MAC="${VM_NET_MAC,,}"
  VM_NET_MAC="${VM_NET_MAC//-/:}"

  if [[ ${#VM_NET_MAC} == 12 ]]; then
    m="$VM_NET_MAC"
+4 −1
Original line number Diff line number Diff line
@@ -166,9 +166,12 @@ _graceful_shutdown() {
  finish "$code" && return "$code"
}

PROCESS="${APP,,}"
PROCESS="${PROCESS// /-}"

MON_OPTS="\
        -pidfile $QEMU_PID \
        -name ${APP,,// /-},process=${APP,,// /-},debug-threads=on \
        -name $PROCESS,process=$PROCESS,debug-threads=on \
        -monitor telnet:localhost:$QEMU_PORT,server,nowait,nodelay"

if [[ "$CONSOLE" != [Yy]* ]]; then