]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/dhcp: systemd: support extra options
authorBenoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
Sun, 25 Oct 2015 00:59:30 +0000 (02:59 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 24 Dec 2015 14:01:33 +0000 (15:01 +0100)
Add an OPTIONS configuration variable in order to make it possible to
pass custom extra options to dhcpd. This keeps the systemd support
consistent with the SysV init script.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
Reviewed-by: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcp/dhcpd.service

index a05deb878f9f09f00a78755b7c4596f5d40ab3c8..98cc54b05b26af706607e58943d83983aed76856 100644 (file)
@@ -5,7 +5,7 @@ After=network.target
 [Service]
 Type=forking
 PIDFile=/run/dhcpd.pid
-ExecStart=/usr/sbin/dhcpd -q -pf /run/dhcpd.pid $INTERFACES
+ExecStart=/usr/sbin/dhcpd -q -pf /run/dhcpd.pid $OPTIONS $INTERFACES
 KillSignal=SIGINT
 EnvironmentFile=-/etc/default/dhcpd