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>
Showing
- package/network/services/dnsmasq/Makefile 6 additions, 1 deletionpackage/network/services/dnsmasq/Makefile
- package/network/services/dnsmasq/files/dhcp-script.sh 46 additions, 0 deletionspackage/network/services/dnsmasq/files/dhcp-script.sh
- package/network/services/dnsmasq/files/dnsmasq.init 7 additions, 4 deletionspackage/network/services/dnsmasq/files/dnsmasq.init
Loading
Please register or sign in to comment