Commit df1b0007 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

GUEST_MAC

parent 50f7fdde
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3,10 +3,12 @@ set -Eeuo pipefail

# Docker environment variables

: ${GUEST_MAC:='02:11:32:AA:BB:CC'}

: ${VM_NET_TAP:='dsm'}
: ${VM_NET_DEV:='eth0'}
: ${VM_NET_HOST:='VirtualDSM'}
: ${VM_NET_MAC:='02:11:32:AA:BB:CC'}
: ${VM_NET_MAC:='$GUEST_MAC'}

: ${DHCP:='N'}
: ${DNS_SERVERS:=''}
@@ -208,6 +210,7 @@ update-alternatives --set iptables /usr/sbin/iptables-legacy > /dev/null
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null

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

GATEWAY=$(ip r | grep default | awk '{print $3}')

if [[ "${DEBUG}" == [Yy1]* ]]; then