[H-GEN] Problem updating modules
Jason Parker-Burlingham
jasonp at panix.com
Sun Jul 9 13:15:39 EDT 2006
On 7/9/06, Geoff Shang <geoff at hitsandpieces.net> wrote:
> On the laptop, I can modprobe snd-via82xx and snd-pcm-oss without any
> problems. But I'd like this to happen automatically when needed, so I put
> in the usual alias stuff, stuff like:
>
> alias char-major-116 snd
> options snd major=116 cards_limit=1
> alias snd-card-0 snd-via82xx
>
> etc.
>
> I put these in a file called alsa in the /etc/modutils directory, but when
> I run update-modules I get a lot of errors, beginning with:
>
> /etc/modutils/alsa: line 2: alias: char-major-116: not found
> /etc/modutils/alsa: line 2: alias: snd: not found
> /etc/modutils/alsa: line 3: options: command not found
Looks like something is trying to run the modutils/alsa file as a shell script.
Aha. addfile() in /sbin/update-modules.modutils runs the file as a
shell script if it has the execute bit set.
It's a feature, not a bug! Huzzah!
jason
More information about the General
mailing list