Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Another Install Issue
Date: Mon, 17 Oct 2011 08:16:20
Message-Id: 20111017091500.5e600736@zaphod.digimed.co.uk
In Reply to: Re: [gentoo-user] Another Install Issue by Florian Philipp
1 On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote:
2
3 > preup() {
4 > if [ "$IFACE" = eth0 ]; then
5 > ebegin "Reloading broadcom and tg3 modules"
6 > modprobe -r foo bar &&
7 > modprobe broadcom &&
8 > modprobe tg3
9 > ewend $? "Failed to reload modules"
10 > fi
11 > return 0
12 > }
13
14 This seems more elegant than a separate init script, but do you want it
15 to return 0 unconditionally? If the modules fail to load, surely you want
16 the attempt to bring the interface up to abort?
17
18
19 --
20 Neil Bothwick
21
22 Famed tautologist dies of suicide in distressing tragedy

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Another Install Issue Mick <michaelkintzios@×××××.com>