From 5d4e3699b29b1ce9d83626ebb5723587a32d523f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 11 Sep 2020 02:33:54 -0600 Subject: [PATCH] dhcp: evaluate IF_HOSTNAME for shell fragments --- executor-scripts/linux/dhcp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/executor-scripts/linux/dhcp b/executor-scripts/linux/dhcp index 0a2b04c..82ae793 100755 --- a/executor-scripts/linux/dhcp +++ b/executor-scripts/linux/dhcp @@ -2,6 +2,9 @@ set -e +# some users provide a shell fragment for the hostname property. +[ -n "$IF_HOSTNAME" ] && IF_HOSTNAME=$(eval echo $IF_HOSTNAME) + determine_implementation() { [ -n "$IF_DHCP_PROGRAM" ] && echo "$IF_DHCP_PROGRAM" && return [ -x /sbin/dhcpcd ] && echo "dhcpcd" && return