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 |