From: Kurt Garloff Subject: Re: network-bridge script reworked Date: Thu, 20 Oct 2005 20:22:20 +0200 Message-ID: <20051020182220.GB13372@tpkurt.garloff.de> References: <20051019093502.GP8705@tpkurt.tagung.uni-hamburg.de> <20051020104100.GZ26910@leeni.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0488573876==" Return-path: In-Reply-To: <20051020104100.GZ26910@leeni.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0488573876== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ewan, On Thu, Oct 20, 2005 at 11:41:00AM +0100, Ewan Mellor wrote: > Kurt, this line >=20 > eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- ${netdev}` >=20 > looks a bit SuSE-specific to me.=20 Right, I should have removed that hunk or at least do something like test -e /etc/SuSE-release && eval `...` Sorry! > It's certainly not working on my Debian system. =20 Networking setup scripts differ quite a lot between distributions, unfortunately. > What's the intention here?=20 It sets HWD_CONFIG_0 which is used a bit later=20 if ! ifup ${HWD_CONFIG_0} ${netdev} ; then and does make sure, ifup uses the right configuration file for your network device. The issue is that ifup (on SUSE) does more than looking at the MAC address to identify a network interface and locate the right config file. > Do you know what we can do to make this more portable? The config file matching may not be an issue on other distros, so the test -e solution is not that bad. If you dislike it, please let me know; we'll carry it around as custom patch then. It would of course not help those folks that test your upstream versions rather than our RPMs, so I think that's the second best solution. Best, --=20 Kurt Garloff, Director SUSE Labs, Novell Inc. --wq9mPyueHGvFACwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDV+BcxmLh6hyYd04RArKqAJ9doq8C4PixRfrOQ1++6zdRlDdZ0ACffAdk gLXMfVQwCMZsGJv5MukXYPY= =Y7V6 -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf-- --===============0488573876== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0488573876==--