[BusyBox] ifup, ifdown applets

Glenn McGrath bug1 at optushome.com.au
Mon Nov 18 04:46:03 UTC 2002


On Mon, 18 Nov 2002 12:13:00 +0100
Steven Scholz <steven.scholz at imc-berlin.de> wrote:

> Glenn McGrath wrote:
> > 
> > Ive just commited those applets based on the debian ifupdown package.
> 
> On my machine an "ifdown -f -v eth0" results in
> 
> ifdown: Configuring interface eth0=eth0 (inet)
> ifdown: cat /var/run/udhcpc.eth0.pid | xargs -i kill -TERM {}
> xargs: invalid option -- i
> BusyBox v0.61.pre (2002.11.17-14:39+0000) multi-call binary
> 
> Usage: xargs [COMMAND] [-prt] [ARGS...]
> 
> Executes COMMAND on every item given by standard input.
> 
> Options:
>         -p      Prompt the user about whether to run each command
>         -r      Do not run command for empty readed lines
>         -t      Print the command line on stderr before executing it.
> 
> since busybox xargs doesn't know -i option...
> 
> BTW what happens if there is no network connection during boot, i.e
> udhcp fails. Is there a way of using a default configuration? 
>

hmm, i hadnt tested it with dhcp, "cat /var/run/dhclient.%iface%.pid |
xargs -i kill -TERM {}" is hard coded :(

Ive started to rewritting ifupdown, its going to take a while though, it
was probably a mistake to commit the current ifupdown.



Glenn



More information about the busybox mailing list