dnsmasq: add dhcp-script hook for other packages
authorNick Brassel <nick@tzarc.org>
Sat, 6 May 2017 10:56:26 +0000 (20:56 +1000)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 26 May 2017 19:28:30 +0000 (21:28 +0200)
commitb32689afd6a661339861086c669e15c936293cf8
treea9dabd6c54451acd9697b689ddb68f86464b3ed0
parent822ee54544c05d031411ab673d33e6f3c4f452a4
dnsmasq: add dhcp-script hook for other packages

Adds a script which acts as a hook for when dnsmasq creates/destroys a
lease, or completes a TFTP file transfer. The hook loops through scripts
in appropriate directories inside '/etc/hotplug.d', executing each one with
the same arguments supplied by dnsmasq.

In case dnsmasq is jailed by ujail the dhcp-script hook will not work as
expected as ujail does not yet support executing a script within a jail.

Signed-off-by: Nick Brassel <nick@tzarc.org>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dhcp-script.sh [new file with mode: 0755]
package/network/services/dnsmasq/files/dnsmasq.init