package/dhcp: make S80dhcp-relay read a file from /etc/default/
authorBenoît Thébaudeau <benoit@wsystem.com>
Sun, 25 Oct 2015 00:59:27 +0000 (02:59 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 24 Dec 2015 13:57:17 +0000 (14:57 +0100)
commit0bc15867dad61c24769d635c31c8263695ed92c0
treeec042fa186020c30b34f685247924c4b4fc9c833
parenta118f32e9a72994d46818b8a3374f7905967c52d
package/dhcp: make S80dhcp-relay read a file from /etc/default/

The S80dhcp-relay init script has configuration variables like
INTERFACES whose contents have to be passed to the daemon. These
variables are initialized as empty strings, but some of them are not
allowed to be empty and there was no means of filling them apart from
creating a root FS overlay to overwrite these scripts.

This commit adds support for reading dhcrelay under /etc/default/ to
set these configuration variables.

[Thomas: adapt to patch only S80dhcp-relay, since S80dhcp-server has
already been changed by previous commits.]

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcp/S80dhcp-relay