[PATCH very-draft] add ifconfig command

Antony Pavlov antonynpavlov at gmail.com
Wed Aug 3 09:48:48 EDT 2011


On 3 August 2011 16:06, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Wed, Aug 03, 2011 at 04:01:08PM +0400, Antony Pavlov wrote:
>> On 3 August 2011 14:22, Sascha Hauer <s.hauer at pengutronix.de> wrote:
>> > On Wed, Aug 03, 2011 at 12:28:42PM +0400, Antony Pavlov wrote:
>> >> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
>> >> ---
>> >>  commands/Kconfig    |    6 +++
>> >>  commands/Makefile   |    1 +
>> >>  commands/ifconfig.c |   97 +++++++++++++++++++++++++++++++++++++++++++++++++++
>> >>  3 files changed, 104 insertions(+), 0 deletions(-)
>> >>  create mode 100644 commands/ifconfig.c
>> >
>> > Right now I don't see the reason to add a ifconfig command. Why not use
>> > devinfo eth0?
>>
>> I don't use dhcp.
>> I use enhanced version of ifconfig to setup eth0 parameters
>> (ipaddr, netmask etc).
>>
>> Have we a command to make dev_set_param() on any device?
>
> Not directly command, but you can set it on the command line. Device
> parameters are just like normal shell variables:
>
> barebox:/ eth0.ipaddr=192.168.2.18
> barebox:/ echo $eth0.ipaddr
> 192.168.2.18
> barebox:/

Thank a lot!

-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list