Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Audio11 failed...



   From: Stephan Thesing <thesing%cs.uni-sb.de@localhost>
   Date: Thu, 23 Jan 1997 14:33:07 +0100 (CET)

   Yes. Maybe something like
    MAJOR=`modstat | awk '/audio/{print $3}'`

Still "no".

the post-loading script is called with the major device number as a
parameter. No need to parse modstat output --- just do it the way it
was designed. Do I really need to read the manpage to you all?

Ok, here you go.

modload -p postinstall.sh the.module

will load the.module, calling (if it succeeds) 

postinstall.sh moduleid moduleid majorid

a sample postinstall.sh would be:

#!/bin/sh
# This code is in the public domain, but don't use it for military purposes,
# the author doesn't have any security clearance :-)
rm -f /dev/audio
mknod -c $3 0 /dev/audio
exit 0

Regards,
        Ignatios Souvatzis




Home | Main Index | Thread Index | Old Index