openwrt/package/network/services/dnsmasq/files
Chuck R 36f309af05 dnsmasq: pass environment variables to hotplug
dnsmasq passes a limited amount of information via DHCP script arguments. Much
more information is available through environment variables starting with
DNSMASQ_, such as DNSMASQ_INTERFACE. However, when the dhcp-script builds its
JSON environment and passes it to hotplug, all of this information is discarded
since it is not copied to the JSON environment.

Personally, I have a custom-made set of DDNS scripts and rely on environment
variables such as DNSMASQ_INTERFACE in order to determine which DNS zones
to update. So, not being able to access these variables was detrimental to me.
I patched in a quick copy of all DNSMASQ_ variables to the JSON environment
so that they can be used in hotplug scripts. In order to do so I also copied
/usr/bin/env into dnsmasq's chroot jail.

Signed-off-by: Chuck R <github@chuck.cloud>

Link: https://github.com/openwrt/openwrt/pull/16354
Signed-off-by: John Crispin <john@phrozen.org>
2024-12-12 11:00:38 +01:00
..
50-dnsmasq-migrate-ipset.sh dnsmasq: add uci-defaults script for ipset migration 2022-11-06 19:47:13 +00:00
50-dnsmasq-migrate-resolv-conf-auto.sh dnsmasq: fix uci-defaults script to exit 0 so it is cleaned up 2020-02-19 22:02:59 +01:00
dhcp-script.sh dnsmasq: pass environment variables to hotplug 2024-12-12 11:00:38 +01:00
dhcp.conf dnsmasq: set an increased cachesize default value 2023-01-21 11:13:44 +01:00
dhcpbogushostname.conf dnsmasq: add dhcp-ignore-names support - CERT VU#598349 2018-10-09 09:45:16 +01:00
dnsmasq_acl.json dnsmasq: add ubus acl to allow calls to hotplug.tftp object 2021-11-12 15:02:58 +00:00
dnsmasq.conf packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
dnsmasq.init dnsmasq: pass environment variables to hotplug 2024-12-12 11:00:38 +01:00
dnsmasqsec.hotplug dnsmasq: switch to ubus-based hotplug call 2021-02-08 00:57:14 +00:00
rfc6761.conf dnsmasq: remove example domains from rfc6761.conf (FS#1447) 2018-04-09 17:35:17 +02:00