home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / etc / alsa / modprobe-post-install.d / alsa-utils
Encoding:
Text File  |  2009-04-07  |  400 b   |  26 lines

  1. #!/bin/sh
  2. #
  3. # modprobe post-install script for alsa
  4.  
  5. udev_is_active()
  6. {
  7.     test -e /dev/.udev || test -d /dev/.udevdb || return 1
  8.     return 0
  9. }
  10.  
  11. if udev_is_active ; then
  12.     # Stuff is done in a udev-run script instead
  13.     exit 0
  14. fi
  15.  
  16. case "$1" in
  17. snd-*-synth)
  18.     # module is not a sound card driver with a mixer
  19.     :
  20.     ;;
  21. *)
  22.     # module is a sound card driver with a mixer
  23.     exec /etc/init.d/alsa-utils start
  24.     ;;
  25. esac
  26.