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 1RFlFI-0007Gm-5E for garchives@archives.gentoo.org; Mon, 17 Oct 2011 11:20:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C23321C040; Mon, 17 Oct 2011 11:20:28 +0000 (UTC) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id EED7E21C021 for ; Mon, 17 Oct 2011 11:19:17 +0000 (UTC) Received: by bke11 with SMTP id 11so3787133bke.40 for ; Mon, 17 Oct 2011 04:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=+pHb0A7Hm8vdngnhFUz9HxCZsw02kH0Xvmm+mc7TtoI=; b=oGbIfqrgVObcChIvpYBrpruSB5eOMGbzQPAaw9lHz0w4lH9P+CzdzbZguRJ+Nt09CF 2mLsh3T4Opz/KMTSd2Fyjtjv23HhaBHMF1AEnMxjvpP/BE33X0AONfnn2/RM6A0l1zZY uEunPXOAgxaRgJv9UoPwHnMQDADtR8TEU5Qrg= 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 Received: by 10.204.152.201 with SMTP id h9mr13816309bkw.99.1318850357044; Mon, 17 Oct 2011 04:19:17 -0700 (PDT) Received: by 10.204.130.210 with HTTP; Mon, 17 Oct 2011 04:19:16 -0700 (PDT) In-Reply-To: <20111017091500.5e600736@zaphod.digimed.co.uk> References: <4E9A119D.1000501@gmail.com> <4E9AAC83.3050305@binarywings.net> <201110161118.45443.michaelkintzios@gmail.com> <4E9B5C37.7060501@binarywings.net> <20111017091500.5e600736@zaphod.digimed.co.uk> Date: Mon, 17 Oct 2011 12:19:16 +0100 Message-ID: Subject: Re: [gentoo-user] Another Install Issue From: Mick To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: cc7b611f469032dfc2f89dd95d358e08 On 17 October 2011 09:15, Neil Bothwick wrote: > On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote: > >> preup() { >> =A0 =A0 if [ "$IFACE" =3D eth0 ]; then >> =A0 =A0 =A0 =A0 ebegin "Reloading broadcom and tg3 modules" >> =A0 =A0 =A0 =A0 modprobe -r foo bar && >> =A0 =A0 =A0 =A0 modprobe broadcom && >> =A0 =A0 =A0 =A0 modprobe tg3 >> =A0 =A0 =A0 =A0 ewend $? "Failed to reload modules" >> =A0 =A0 fi >> =A0 =A0 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? In my head I find it less elegant to be honest. Is it up to a network configuration script to load the *kernel* module for the hardware? --=20 Regards, Mick