dhcp: evaluate IF_HOSTNAME for shell fragments
This commit is contained in:
parent
a7e27ffa2c
commit
5d4e3699b2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue