On Tue, Oct 07, 2008 at 11:46:43AM +0200, Natanael Copa wrote:
>On Tue, 2008-10-07 at 10:58 +0200, Bernhard Reutner-Fischer wrote:
>> On Tue, Oct 07, 2008 at 10:36:30AM +0200, Natanael Copa wrote:
>> >Hi,
>> >
>> >Attatched patch lets you use the "metric" keyword when adding routes.
>> >Useful for udhcp scripts:
>> >
>> >metric=0
>> >for gw in $router; do
>> > ip route add default via $gw dev $interface metric $metric
>> > metric=$(( $metric + 1 ))
>> >done
>>
>> sounds good, please resend with updated usage.h, too.
>
>how do I display the usage for 'ip route'?
hmz.
This will cost some bytes :(
>
># ./busybox ip help
>
>BusyBox v1.13.0.svn (2008-09-30 06:53:46 UTC) multi-call binary
>
>Usage: ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND}
>
>ip [OPTIONS] OBJECT {COMMAND}
>where OBJECT := {address | route | link | tunnel | rule}
>OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }
>
># ./busybox ip route help
>ip: unknown command help
>
># ./busybox ip route -h
>ip: unknown command -h
I sense an additional buglet here..
$ egrep "(SHORT|IP_ROUTE)" .config
CONFIG_FEATURE_IP_ROUTE=y
CONFIG_FEATURE_IP_SHORT_FORMS=y
$ ./busybox iproute
iproute: unknown command iproute
$
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox