From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RFiMt-0002tD-Rq for garchives@archives.gentoo.org; Mon, 17 Oct 2011 08:16:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 846DF21C1BA; Mon, 17 Oct 2011 08:16:10 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 9709D21C09D for ; Mon, 17 Oct 2011 08:15:07 +0000 (UTC) Received: from zaphod.digimed.co.uk (zaphod.digimed.co.uk [192.168.1.1]) by mail.digimed.co.uk (Postfix) with ESMTPSA id BA75D803EB for ; Mon, 17 Oct 2011 09:15:04 +0100 (BST) Date: Mon, 17 Oct 2011 09:15:00 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Another Install Issue Message-ID: <20111017091500.5e600736@zaphod.digimed.co.uk> In-Reply-To: <4E9B5C37.7060501@binarywings.net> References: <4E9A119D.1000501@gmail.com> <4E9AAC83.3050305@binarywings.net> <201110161118.45443.michaelkintzios@gmail.com> <4E9B5C37.7060501@binarywings.net> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.10cvs30 (GTK+ 2.24.6; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/ENIuskxJiQKZ56ey3FrAvk8"; protocol="application/pgp-signature" X-Archives-Salt: X-Archives-Hash: a0c4f47d5c826846cc7fbec1fae70731 --Sig_/ENIuskxJiQKZ56ey3FrAvk8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote: > preup() { > if [ "$IFACE" =3D eth0 ]; then > ebegin "Reloading broadcom and tg3 modules" > modprobe -r foo bar && > modprobe broadcom && > modprobe tg3 > ewend $? "Failed to reload modules" > fi > return 0 > } This seems more elegant than a separate init script, but do you want it to return 0 unconditionally? If the modules fail to load, surely you want the attempt to bring the interface up to abort? --=20 Neil Bothwick Famed tautologist dies of suicide in distressing tragedy --Sig_/ENIuskxJiQKZ56ey3FrAvk8 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk6b5AgACgkQum4al0N1GQN0rQCeNG0ctSA6DX4PJ8DP+0GjuB7v 6HIAn2dP5o6iqfyk84h5AhDkYWaoqgEj =yQij -----END PGP SIGNATURE----- --Sig_/ENIuskxJiQKZ56ey3FrAvk8--