openwrt/package/network/services
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
..
bridger bridger: update to Git HEAD (2024-04-22) 2024-04-22 11:02:52 +02:00
dnsmasq dnsmasq: pass environment variables to hotplug 2024-12-12 11:00:38 +01:00
dropbear dropbear: bump to 2024.86 2024-11-24 20:08:12 +01:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: add SAE support for wifi-station and optimize PSK file creation 2024-12-12 09:46:38 +01:00
ipset-dns treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
lldpd lldpd: fix reload bug: advertisements shall default to on 2024-04-27 12:11:27 +02:00
odhcpd odhcpd: update to Git HEAD (2024-05-08) 2024-05-08 00:11:19 +02:00
omcproxy treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ppp ppp: remove more unnecessary kernel checks 2024-11-16 14:26:47 +01:00
relayd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
uhttpd uhttpd: restart daemon if certificate has changed 2024-08-19 18:46:08 +02:00
umdns umdns: update to latest HEAD 2024-12-11 15:41:21 +01:00
unetd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ustp ustp: update to Git HEAD (2023-05-29) 2024-04-27 11:40:04 +02:00