[PATCH very-draft] add ifconfig command

Antony Pavlov antonynpavlov at gmail.com
Wed Aug 3 08:01:08 EDT 2011


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?

With command of such type we will have no need of ifconfig.

-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list