On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote:

> preup() {
>     if [ "$IFACE" = 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?


-- 
Neil Bothwick

Famed tautologist dies of suicide in distressing tragedy

Attachment: signature.asc
Description: PGP signature

Reply via email to