On Fri, Oct 24, 2008 at 10:19:55AM +0200, Loïc Minier wrote:
> On Fri, Oct 24, 2008, Michael Meskes wrote:
> > if [ $MODULES ]; then
> >     modprobe --all --use-blacklist $MODULES 2>/dev/null
> > fi
> 
>  Err you probably lack a -n here, but FYI there's already:

No. For some strange reasons the "if [ $MODULES ]" works for me as does
"if [ ! -z $MODULES ]" but "if [ -n $MODULES ]" does not.

>     if [ -z "$MODULES" ]; then
>         return
>     fi

Ah sorry, missed this.

>  I think modprobe --all always returns 0 (which is probably a bug; I've
>  reported when I rewrote the init script), so it might be a bogus return
>  again which might want to be return 0, but I don't think so.

Probably not. From what I understood the modprobe is executed on his system, so
the return is not. 

Derrick, could you please add an echo and output $MODULES on your system with
some boundaries, so we see whether it's empty or maybe containing some empty
string or whatever? Also could you send us the modules.dep file?

Michael

-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to