openwrt/package
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
..
base-files base-files: add option to set LED brightness 2024-12-12 09:46:38 +01:00
boot qualcommax: ipq60xx: add Linksys MR7350 support 2024-12-07 16:00:58 +01:00
devel perf: fix version for APK 2024-11-12 17:55:16 +01:00
firmware qualcommax: ipq60xx: add Linksys MR7350 support 2024-12-07 16:00:58 +01:00
kernel wifi-scripts: add ucode based iwinfo 2024-12-02 13:55:36 +01:00
libs gmp: use same source tarball for tools/gmp and package/libs/gmp 2024-11-28 15:53:32 +00:00
network dnsmasq: pass environment variables to hotplug 2024-12-12 11:00:38 +01:00
system procd: update to latest HEAD 2024-12-11 14:43:25 +01:00
utils busybox: Save shell history into /tmp 2024-12-08 19:18:02 +01:00
Makefile build: fix filtering of non-upgradable packages 2024-11-21 17:55:45 +01:00