ifupdown-script: send current hostname in DHCP request
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 30 Oct 2018 17:16:14 +0000 (18:16 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 5 Nov 2018 22:20:55 +0000 (23:20 +0100)
commit7a3f85ddff33c9c02ee04f1f9aaf5d5c7a9bac45
tree367a26d2e71290a82a9bc25859b5bae2a36ec3b6
parent16db3937c09e6aaa914e3e05f8472323e2e088a8
ifupdown-script: send current hostname in DHCP request

For the default (BR2_SYSTEM_DHCP) /etc/network/interfaces handling.

Both the "big" and busybox ifupdown variants pass the hostname argument to
the DHCP client through the shell, so we can use $() to expand to the
current hostname value.

Notice that this may not be handled by all DHCP clients.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ifupdown-scripts/ifupdown-scripts.mk