zcip left ip blank
kate katty
kate.kattythebest at gmail.com
Fri Jul 24 07:12:28 UTC 2009
Thank you Denys for the response !!
I've attached my zcip.script please find the same in this mail.
zcip.script called inside a child process via execl()
i.e
execl(script, script, arg, prefix, NULL)
Guessing that if zcip.script exit with non zero then it'll return back
without allocation ip
How could I check whether zcip.script returns zero (exit 0) or non-zero
(exit 1)
Regards,
Kate
On Fri, Jul 24, 2009 at 12:57 AM, Denys Vlasenko
<vda.linux at googlemail.com>wrote:
> On Thursday 23 July 2009 07:03, kate katty wrote:
> > HI,
> >
> > I'd noticed that zcip left ip blank and the respective command is
> > #zcip -r 169.254.*.* br0 [pathto]/zcip.script
> >
> > How can I deal with this scenario?
> > I'm unable to reproduce the same scenario.
>
> You need to show your zcip.script.
>
> With this test script I see that zcip does its part of the job just fine:
>
> # echo '#!/bin/sh' >env.sh
> # echo 'echo called with $interface $ip' >>env.sh
> # chmod 755 env.sh
> # ./busybox zcip -vf if ./env.sh
> init if
> called with if
> (a few seconds of pause)
> config if 169.254.175.131
> called with if 169.254.175.131
> ^C
>
> --
> vda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090724/2d75eb09/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zcip.script
Type: application/octet-stream
Size: 873 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090724/2d75eb09/attachment.obj>
More information about the busybox
mailing list