Environment variable set in the dhcpcd.conf profile is not passed to dhcpcd run hooks
Carbolymer
Mon Feb 19 13:21:14 2018
Hi,
I've encountered strange issue, when I set variable in the profile in the
/etc/dhcpcd.conf it is not passed to the hook script:
interface eth0
arping 192.168.0.1
profile xx:xx:xx:xx:xx:xx
env enable_proxy=1
However, when I put the variable before the profile, like this:
interface eth0
arping 192.168.0.1
env enable_proxy=1
profile xx:xx:xx:xx:xx:xx
it is suddenly visible inside the hook script. What is going on? The
profile is executed correctly - the network configuration inside it is
evaluated properly but env option has no effect. How can I set environment
variables for hook scripts from dhcpcd profile?
I've also posted this question on superuser.com:
https://superuser.com/questions/1296356/environment-variable-set-in-the-dhcpcd-conf-profile-is-not-passed-to-dhcpcd-run
Best regards,
Carbolymer
Archive administrator: postmaster@marples.name