[PATCH very-draft] add ifconfig command

Sascha Hauer s.hauer at pengutronix.de
Wed Aug 3 08:06:48 EDT 2011


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:/ 

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list