From: Antony Pavlov <antonynpavlov@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH very-draft] add ifconfig command
Date: Wed, 3 Aug 2011 17:48:48 +0400 [thread overview]
Message-ID: <CAA4bVAGdwCK9Z+hWcq-cq6rj+RqTTKGeqh5SK4rwPhHEsfVdFw@mail.gmail.com> (raw)
In-Reply-To: <20110803120648.GR31404@pengutronix.de>
On 3 August 2011 16:06, Sascha Hauer <s.hauer@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@pengutronix.de> wrote:
>> > On Wed, Aug 03, 2011 at 12:28:42PM +0400, Antony Pavlov wrote:
>> >> Signed-off-by: Antony Pavlov <antonynpavlov@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-08-03 13:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 8:28 [PATCH very-draft] lib: add hexdump function from linux-3.0 Antony Pavlov
2011-08-03 8:28 ` [PATCH very-draft] add ifconfig command Antony Pavlov
2011-08-03 10:22 ` Sascha Hauer
2011-08-03 12:01 ` Antony Pavlov
2011-08-03 12:06 ` Sascha Hauer
2011-08-03 13:48 ` Antony Pavlov [this message]
2011-08-03 10:21 ` [PATCH very-draft] lib: add hexdump function from linux-3.0 Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAA4bVAGdwCK9Z+hWcq-cq6rj+RqTTKGeqh5SK4rwPhHEsfVdFw@mail.gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox