devfs
[Top] [All Lists]

Re: modprobe /dev/*

To: Russell Coker <russell@xxxxxxxxxxxx>
Subject: Re: modprobe /dev/*
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Thu, 14 Feb 2002 11:12:56 -0700
Cc: devfs@xxxxxxxxxxx, kaos@xxxxxxxxxx
In-reply-to: <20020214131017.D2E62C73D@xxxxxxxxxxxxxxxxx>
References: <20020214131017.D2E62C73D@xxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Russell Coker writes:
> At linux.conf.au Keith and I were looking into devfs module loading issues.
> 
> We noticed that the distribution he was running (some RPM distribution) had a 
> lot of scripts with code like the following:
> 
> for n in /dev/dsp* ; do
> ...
> done
> 
> This results in `modprobe "/dev/dsp*"` being run once for the for line and 
> then a second time in the body of the loop.
> 
> We discovered that a significant number of useless modprobe runs
> were removed when we added the following to devfsd.conf:
> LOOKUP  \*$  IGNORE
> 
> Before the following line in the default config:
> LOOKUP              .*              MODLOAD
> 
> I think that this should be part of the default config file.

This sounds to me like it's a script problem. For bash-v1.x I have:
allow_null_glob_expansion=

and for bash-v2.x I have:
shopt -s nullglob

Why not just fix the scripts? A trailing '*' might be used in a
filename, so I'd prefer not to break that.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>