From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Christoph Fritz <chf.fritz@googlemail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/2] defaultenv-2: add nameserver IPs to kernel-parameter ip=
Date: Sat, 22 Sep 2012 13:45:39 +0200 [thread overview]
Message-ID: <20120922114539.GU26553@game.jcrosoft.org> (raw)
In-Reply-To: <1348311547.3917.6.camel@mars>
On 12:59 Sat 22 Sep , Christoph Fritz wrote:
> Due to lack of testing environment this patch is untested.
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
> defaultenv-2/base/bin/bootargs-ip | 4 +++-
> defaultenv-2/base/bin/bootargs-ip-barebox | 5 ++++-
> defaultenv-2/base/bin/ifup | 4 ++++
> defaultenv-2/base/network/eth0 | 2 ++
> 4 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/defaultenv-2/base/bin/bootargs-ip b/defaultenv-2/base/bin/bootargs-ip
> index 2d4486c..53623853 100644
> --- a/defaultenv-2/base/bin/bootargs-ip
> +++ b/defaultenv-2/base/bin/bootargs-ip
> @@ -7,5 +7,7 @@
> if [ $ip = dhcp ]; then
> global.linux.bootargs.dyn.ip="ip=dhcp"
> else
> - global.linux.bootargs.dyn.ip="ip=$ipaddr:$serverip:$gateway:$netmask::eth0:"
> + global.linux.bootargs.dyn.ip="ip=$ipaddr:$serverip:$gateway:$netmask::eth0::"
> + global.linux.bootargs.dyn.ip="$global.linux.bootargs.dyn.ip$eth0.nameserver0:"
> + global.linux.bootargs.dyn.ip="$global.linux.bootargs.dyn.ip$eth0.nameserver1"
keep it on one line for grepping
> fi
> diff --git a/defaultenv-2/base/bin/bootargs-ip-barebox b/defaultenv-2/base/bin/bootargs-ip-barebox
> index 5a3b984..09f42a8 100644
> --- a/defaultenv-2/base/bin/bootargs-ip-barebox
> +++ b/defaultenv-2/base/bin/bootargs-ip-barebox
> @@ -4,4 +4,7 @@
>
> ifup eth0
>
> -global.linux.bootargs.dyn.ip="ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask::eth0:"
> +global.linux.bootargs.dyn.ip="ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:"
> +global.linux.bootargs.dyn.ip="$global.linux.bootargs.dyn.ip$eth0.netmask::eth0::"
> +global.linux.bootargs.dyn.ip="$global.linux.bootargs.dyn.ip$eth0.nameserver0:"
> +global.linux.bootargs.dyn.ip="$global.linux.bootargs.dyn.ip$eth0.nameserver1"
> diff --git a/defaultenv-2/base/bin/ifup b/defaultenv-2/base/bin/ifup
> index 37b986c..fe5a242 100644
> --- a/defaultenv-2/base/bin/ifup
> +++ b/defaultenv-2/base/bin/ifup
> @@ -26,6 +26,8 @@ netmask=
> gateway=
> serverip=
> ethaddr=
> +nameserver0=
> +nameserver1=
>
> . $cmd
>
> @@ -51,6 +53,8 @@ if [ "$ip" = static ]; then
> ${interface}.netmask=$netmask
> ${interface}.serverip=$serverip
> ${interface}.gateway=$gateway
> + ${interface}.nameserver0=$nameserver0
> + ${interface}.nameserver1=$nameserver1
and this is not interface specific net.nameserver
and dhcp??
Best Regards,
J.
> ret=0
> elif [ "$ip" = dhcp ]; then
> dhcp
> diff --git a/defaultenv-2/base/network/eth0 b/defaultenv-2/base/network/eth0
> index 7e731ca..2ed64ca 100644
> --- a/defaultenv-2/base/network/eth0
> +++ b/defaultenv-2/base/network/eth0
> @@ -9,6 +9,8 @@ ipaddr=
> netmask=
> gateway=
> serverip=
> +nameserver0=
> +nameserver1=
>
> # MAC address if needed
> #ethaddr=xx:xx:xx:xx:xx:xx
> --
> 1.7.2.5
>
>
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-09-22 11:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-22 10:59 Christoph Fritz
2012-09-22 11:45 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-09-22 16:06 ` Christoph Fritz
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=20120922114539.GU26553@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
--cc=chf.fritz@googlemail.com \
/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