On Friday 14 May 2004 21:05, James Yonan wrote: > Right now all new patches are going into 2.0, but I'm certainly amenable to > merging localized patches such as the route patch for darwin into 1.x. > > I will add to the todo list for 1.6.1.
Hmm. On Unixlike systems it typically easier to call sh script to do this kind of config changes. This looks like superior solution to me. For example, udhcpcd (DHCP clent) never ever touches configuration of eth device it operates over. It handles _only_ DHCP protocol, and whenever it detects change in DHCP state (i.e. it obtains/loses a license), it calls program specified via --script directive. That program is typically sh script. It can be easily changed to do whatever needed (routing table changes of arbitrary complexity, popup windows, ring a bell, whatever). Without changing udchcd source. udhcpcd passes all parameters to the script via env, not command line. It makes it easy to add new parameters as udhcpcd evolve without breaking existing scripts. -- vda