dhcp: evaluate IF_HOSTNAME for shell fragments

This commit is contained in:
Ariadne Conill 2020-09-11 02:33:54 -06:00
parent a7e27ffa2c
commit 5d4e3699b2

View file

@ -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