c2839f859e
Allow user to override default templates. Closes #205.
14 lines
391 B
Plaintext
14 lines
391 B
Plaintext
ARG BASE_TEMPLATE=default/base
|
|
ARG HOST_RESOLV_CONF=/etc/resolv.conf
|
|
|
|
INCLUDE ${BASE_TEMPLATE} --arg HOST_RESOLV_CONF="${HOST_RESOLV_CONF}"
|
|
|
|
ARG EPAIR
|
|
ARG GATEWAY
|
|
ARG IFCONFIG="SYNCDHCP"
|
|
|
|
SYSRC ifconfig_${EPAIR}_name=vnet0
|
|
SYSRC ifconfig_vnet0="${IFCONFIG}"
|
|
# GATEWAY will be empty for a DHCP config. -- cwells
|
|
CMD if [ -n "${GATEWAY}" ]; then /usr/sbin/sysrc defaultrouter="${GATEWAY}"; fi
|