procd, possible hotplug issue?

Paul D newtwen at gmail.com
Tue Feb 20 05:14:49 PST 2024


On 2024-02-17 22:55, e9hack wrote:
> Hi,
> 
> I face a problem with hotplug calls. To execute hotplug calls, procd
> checks given environment variables. If a variable is empty, it is
> simply not set by procd. If such a variable is already set by the
> shell, the called hotplug script gets a wrong value. This occurs with
> dhcp hotplug scripts. On some dhcp changes, dnsmasq executes its dhcp
> script. This sets the variable HOSTNAME. Sometimes this value is
> empty. This results in calling the hotplug script with HOSTNAME set to
> the router name, because the variable is already set. I think, procd
> must clear or delete such environment variables.
> 
> Regards,
> Hartmut
> 

Could you show an example of this?





More information about the openwrt-devel mailing list