vnet_template: allow setting description in jail

This commit is contained in:
tschettervictor
2025-11-02 12:37:52 -07:00
committed by GitHub
parent 0940887d20
commit 7ae1e2697e

View File

@@ -1,3 +1,4 @@
ARG EXT_INTERFACE
ARG INTERFACE
ARG VNET
ARG GATEWAY
@@ -7,6 +8,7 @@ ARG IFCONFIG6
SYSRC ifconfig_${INTERFACE}_name=${VNET}
SYSRC ifconfig_${VNET}="${IFCONFIG}"
SYSRC ifconfig_${VNET}_descr="${VNET}:${EXT_INTERFACE}"
# Apply IFCONFIG6 if set
CMD if [ -n "${IFCONFIG6}" ]; then /usr/sbin/sysrc ifconfig_${VNET}_ipv6="${IFCONFIG6}"; fi