alsa/install-snd-module
Cristian Morales Vega 2eea2e9c73 Accepting request 126580 from home:tiwai:branches:multimedia:libs
- Use a special modprobe config for loading OSS and sequencer
  modules automatically (bnc#768361,bnc#768352,bnc#757484,
  bnc#767738)
- Remove the automatic module loading part from alsasound init
  script since modprobe does it now
- Set LOAD_SEQUENCER=no and LOAD_OSS_EMUL_MODULES=no as default;
  these were already disabled on 12.1 with systemd.
  This is only for new installations.  Users upgrading from old
  distros aren't affected.

OBS-URL: https://build.opensuse.org/request/show/126580
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=107
2012-06-29 14:29:00 +00:00

34 lines
818 B
Bash

#!/bin/sh
/sbin/modprobe --ignore-install "$@" || exit $?
. /etc/sysconfig/sound
case "$1" in
snd)
/sbin/modprobe --quiet --use-blacklist snd-ioctl32
test "$LOAD_OSS_EMUL_MODULES" = "yes" && \
/sbin/modprobe --quiet --use-blacklist snd-mixer-oss
test "$LOAD_SEQUENCER" = "yes" && \
/sbin/modprobe --quiet --use-blacklist snd-seq
;;
snd-pcm|snd_pcm)
test "$LOAD_OSS_EMUL_MODULES" = "yes" && \
/sbin/modprobe --quiet --use-blacklist snd-pcm-oss
;;
snd-seq|snd_seq)
if [ -r /proc/asound/seq/drivers ]; then
OLDIFS="$IFS"
IFS=","
while read t x c; do
/sbin/modprobe --quiet --use-blacklist $t
done < /proc/asound/seq/drivers
IFS="$OLDIFS"
fi
test "$LOAD_OSS_SEQ_MODULE" = "yes" && \
/sbin/modprobe --quiet --use-blacklist snd-seq-oss
;;
esac
exit 0