mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
MAC
This commit is contained in:
parent
3797b48873
commit
c10cc2e11f
@ -5,10 +5,10 @@ set -eu
|
|||||||
: ${VM_NET_MAC:=''}
|
: ${VM_NET_MAC:=''}
|
||||||
: ${VM_NET_IP:='20.20.20.21'}
|
: ${VM_NET_IP:='20.20.20.21'}
|
||||||
|
|
||||||
|
: ${DNS_SERVERS:=''}
|
||||||
: ${DNSMASQ:='/usr/sbin/dnsmasq'}
|
: ${DNSMASQ:='/usr/sbin/dnsmasq'}
|
||||||
: ${DNSMASQ_OPTS:=''}
|
: ${DNSMASQ_OPTS:=''}
|
||||||
: ${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'}
|
: ${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'}
|
||||||
: ${DNS_SERVERS:=''}
|
|
||||||
|
|
||||||
# ######################################
|
# ######################################
|
||||||
# Functions
|
# Functions
|
||||||
@ -66,9 +66,7 @@ fi
|
|||||||
#If environment variabele not set fall back to file
|
#If environment variabele not set fall back to file
|
||||||
if [ -z "$VM_NET_MAC" ]; then
|
if [ -z "$VM_NET_MAC" ]; then
|
||||||
FILE="${IMG}/guest.mac"
|
FILE="${IMG}/guest.mac"
|
||||||
if [ ! -f "$FILE" ]; then
|
[ ! -f "$FILE" ] && echo "00:11:32:2C:A7:85" > "$FILE"
|
||||||
echo "00:11:32:2C:A7:85" > "$FILE"
|
|
||||||
fi
|
|
||||||
VM_NET_MAC=$(cat "${FILE}")
|
VM_NET_MAC=$(cat "${FILE}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user