From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mo3.mail-out.ovh.net ([178.32.228.3]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SJPnR-0007Mk-Jf for barebox@lists.infradead.org; Sun, 15 Apr 2012 13:47:18 +0000 Received: from mail622.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 507FAFF8722 for ; Sun, 15 Apr 2012 15:48:28 +0200 (CEST) Date: Sun, 15 Apr 2012 15:29:11 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20120415132911.GL30672@game.jcrosoft.org> References: <1334496380-4091-1-git-send-email-s.hauer@pengutronix.de> <1334496380-4091-4-git-send-email-s.hauer@pengutronix.de> <20120415132044.GK30672@game.jcrosoft.org> <20120415134346.GH3852@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120415134346.GH3852@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/6] net: add nameserver and domainname to net devices To: Sascha Hauer Cc: barebox@lists.infradead.org On 15:43 Sun 15 Apr , Sascha Hauer wrote: > On Sun, Apr 15, 2012 at 03:20:44PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 15:26 Sun 15 Apr , Sascha Hauer wrote: > > > This adds nameserver and domainname to net devices. This may not > > > be 100% correct since the nameserver and domainname are not network > > > device specific. However, we currently do not have the possibility > > > for global variables. DNS support depends on the nameserver/domainname > > > to be set correctly. When we set both inside a script the variables > > > will not be available to the parent context, so use device parameters > > > which are global. > > > > how about put it at bus level instead? > > > > I get an issue is what happened if we have 2 ethernet? > > > > and switch from one to the other? > > I am aware of this issue, but what do you mean with 'put it at bus > level?' > > I thought about adding a device named 'net' which would only exist to > store these variables. Is that what you mean? yes exactly Best Regards, J. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox