On 19/03/12 17:51, richardvo...@gmail.com wrote:
Existing scripts could definitely break, imagine one that just logs certain environment variables plus the parameter. The new action values won't have the right environment variable set.
A good point, but such scripts are already going to suffer as soon as DHCPv6 is used: that has the same action values, but some environment variables change.
Adding --tftp-script will work this time, but it will have to be repeated with more --*-script options if we ever add more functions. That starts to get silly. Biting the bullet now, and documenting that the script has to ignore unknown actions, fixes the problem once and for all.
Of course, that should have been the case from the start, but it's too late now. Dnsmasq's record on backwards compatibility is pretty good, so maybe we're entitled to a bit of slack.
How about both? Give the --tftp-script the same action parameter, and keep actions unique, that way both options can be pointed to the same script, or separate scripts.
If --tftp-script is used, that's the way to go, for sure. Cheers, Simon. _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss