lkml.org 
[lkml]   [1998]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Hack for Sound question
    On Tue, 21 Jul 1998, Thomas Molina wrote:

    > RedHat 5.X does this. They created a script which, among other things,
    > does aumix -L at startup and aumix -S at shutdown. It saves these
    > settings in /etc/.aumixrc.

    I don't know how or what Redhat does, but someone (Alan Cox I believe)
    previously posted what I believe to be the best solution, using
    conf.modules options:

    (excerpt from man modprobe)
    options module symbol=value ...
    alias module real_name
    pre-install module command ...
    install module command ...
    post-install module command ...
    pre-remove module command ...
    remove module command ...
    post-remove module command ...

    As you can see, simply have a "post-install" line to read the mixer
    settings and a "pre-remove" to save them. Simple, elegant. There are a
    couple of caveats, but you dont normally auto-clean the sound module
    AFAIK.


    --
    +----------------------+----------------------------------------+
    | bytor@tucka.nmhu.edu | UNIX _is_ user-friendly. It's just not |
    | By-Tor@EfNet | ignorant-friendly and idiot-friendly. |
    +----------------------+----------------------------------------+


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

    \
     
     \ /
      Last update: 2005-03-22 13:43    [W:0.022 / U:0.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site