tags 289943 + moreinfo thanks On Wed, Jan 12, 2005 at 12:18:25AM +0100, Hermann Lauer wrote: > Package: dhcp3-client > Version: 3.0.1-1 > Severity: normal > File: dhclient-script > > *** Please type your report below this line *** > > The argument $1 to exit_with_hooks() is not propagated to the hook scripts. > This works > with the original distributed script and is needed for advanced scripting, > which need to detect success or failures (see TIMEOUT code). At the moment > $1 to the hook scripts is set to the hook script name - which is useless > inside > the script(s). >
Hello Hermann, I've got to say I'm not quite following what you're saying the problem is here. I've examined the stock "linux" dhclient-script that ships with the source, and I can't see how it's passing any arguments to the hooks either. That said, you talk about detecting failures. I had a quick play with the debug hook that ships with the client package, and enabled it, and there's a "reason" variable available to it. I tried playing with it, but the best I could do is get it to be set to "FAIL", not "TIMEOUT" that you speak of. So if you can give me an example of how you'd like this to work, I can see what I can do. regards Andrew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

