Re: dhclient-script, hooks, and changing the environment

2008-08-24 Thread martin f krafft
also sprach Daniel Bayer <[EMAIL PROTECTED]> [2008.08.23.2000 +0100]: > I used hooks, which mangled the environment in such a way that the > default route was not set but instead a host route to my openvpn > server via the announced default gateway. Including a simple detection > if I'm home or not

Re: dhclient-script, hooks, and changing the environment

2008-08-23 Thread Daniel Bayer
Hello, On Wed, Aug 06, 2008 at 09:10:56PM -0300, martin f krafft wrote: > having gotten over the rage that caused [0] to be written, I am now > trying to make an informed decision about how netconf should > integrate DHCP hooks. I thus seek your opinion and experience and > would appreciate your h

Re: dhclient-script, hooks, and changing the environment

2008-08-09 Thread Brian May
martin f krafft wrote: Anything else? Do you know of packages that rely on this functionality? Do you have scripts of your own which modify the environment? Would you please be so kind as to explain to me what they do, and help me figure out whether there isn't a better way for them? My sugge

Re: dhclient-script, hooks, and changing the environment

2008-08-08 Thread Theodore Tso
On Fri, Aug 08, 2008 at 03:29:43PM -0300, martin f krafft wrote: > also sprach Theodore Tso <[EMAIL PROTECTED]> [2008.08.08.1453 -0300]: > > In the past I've used dhclient-enter-hooks.d to work around buggy > > hotel networks which advertise a gateway for the default route > > which is outside the

Re: dhclient-script, hooks, and changing the environment

2008-08-08 Thread martin f krafft
also sprach Theodore Tso <[EMAIL PROTECTED]> [2008.08.08.1453 -0300]: > In the past I've used dhclient-enter-hooks.d to work around buggy > hotel networks which advertise a gateway for the default route > which is outside the local network. netconf could handle this internally, and it would be fai

Re: dhclient-script, hooks, and changing the environment

2008-08-08 Thread Theodore Tso
On Wed, Aug 06, 2008 at 09:10:56PM -0300, martin f krafft wrote: > Anything else? Do you know of packages that rely on this > functionality? Do you have scripts of your own which modify the > environment? Would you please be so kind as to explain to me what > they do, and help me figure out whether

Re: dhclient-script, hooks, and changing the environment

2008-08-08 Thread Brian May
Peter Samuelson wrote: [Brian May] How many dhclient scripts actually make use of this "feature" of being able to change environment variables? If it is little used maybe it isn't worth the effort in supporting. That is exactly the question Martin asked as he opened the thread. While

Re: dhclient-script, hooks, and changing the environment

2008-08-07 Thread Peter Samuelson
[Brian May] > How many dhclient scripts actually make use of this "feature" of > being able to change environment variables? If it is little used > maybe it isn't worth the effort in supporting. That is exactly the question Martin asked as he opened the thread. While I can't solve the halting pr

Re: dhclient-script, hooks, and changing the environment

2008-08-06 Thread Mike Hommey
On Wed, Aug 06, 2008 at 11:41:39PM -0300, martin f krafft wrote: > also sprach Brian May <[EMAIL PROTECTED]> [2008.08.06.2242 -0300]: > > Packages that come to mind that want to alter the environment of it > > parent are: > > > >* ssh-agent > > You have to eval the output, no? > > >*

Re: dhclient-script, hooks, and changing the environment

2008-08-06 Thread Brian May
martin f krafft wrote: The problem is that netconf has no dhclient-script anymore as it parses dhclient REASONS directly and then proceeds to use e.g. IP address and router stuff as if it had been gathered from /e/n/i. Thus, hooks are execvp()'d from netconf directly. If I wanted to allow hooks

Re: dhclient-script, hooks, and changing the environment

2008-08-06 Thread martin f krafft
also sprach Brian May <[EMAIL PROTECTED]> [2008.08.06.2242 -0300]: > Packages that come to mind that want to alter the environment of it > parent are: > >* ssh-agent You have to eval the output, no? >* *horror* ! :) Neither of those affect /etc/dhcp3/

Re: dhclient-script, hooks, and changing the environment

2008-08-06 Thread Brian May
martin f krafft wrote: Anything else? Do you know of packages that rely on this functionality? Do you have scripts of your own which modify the environment? Would you please be so kind as to explain to me what they do, and help me figure out whether there isn't a better way for them? Packages

dhclient-script, hooks, and changing the environment

2008-08-06 Thread martin f krafft
Folks, having gotten over the rage that caused [0] to be written, I am now trying to make an informed decision about how netconf should integrate DHCP hooks. I thus seek your opinion and experience and would appreciate your help. dhclient hooks are encouraged by the dhclient-script(8) manpage to