Re: [Dnsmasq-discuss] Set environment variable for dhcp-script

2018-08-09 Thread Geert Stappers
On Thu, Aug 09, 2018 at 08:38:33PM +, Daniel Weller wrote: > Hello, > > I am trying to set an environment variable from inside dnsmasq- giving > the script being called by dhcp-script access to that variable. I > think the location to do this is inside helper.c in the create_helper() > functio

[Dnsmasq-discuss] Set environment variable for dhcp-script

2018-08-09 Thread Daniel Weller
Hello, I am trying to set an environment variable from inside dnsmasq- giving the script being called by dhcp-script access to that variable. I think the location to do this is inside helper.c in the create_helper() function. However, when it forks I am unable to follow the child process in my

Re: [Dnsmasq-discuss] Conditional arguments depending on dhcp option 77 (user class)

2018-08-09 Thread Pali Rohár
On Thursday 09 August 2018 17:57:11 Oliver Rath wrote: > Hi list, > > configuring ipxe boot recommends configuring an isc-dhcp-server i.e. in > this way: > > if exists user-class and option user-class = "iPXE" { > filename "http://my.web.server/real_boot_script.php";; > } else { >

[Dnsmasq-discuss] Conditional arguments depending on dhcp option 77 (user class)

2018-08-09 Thread Oliver Rath
Hi list, configuring ipxe boot recommends configuring an isc-dhcp-server i.e. in this way: if exists user-class and option user-class = "iPXE" { filename "http://my.web.server/real_boot_script.php";; } else { filename "undionly.kpxe"; } reffering to dhcp option 77 "User Class I