1 KERNEL_VERSION=$(uname -r)
4 depmod -v $KERNEL_VERSION &> /dev/null
5 modprobe snd-emu10k1 &> /dev/null
6 # modprobe snd-pcm-oss &> /dev/null
7 # modprobe snd-mixer-oss &> /dev/null
8 # modprobe snd-seq-oss &> /dev/null
9 # modprobe snd-usb-audio &> /dev/null
10 echo "==> Add 'snd-emu10k1' to the MODULES array of /etc/rc.conf"
11 echo "==> And reboot system to apply the change"
12 echo "==> You may need to set 'Clock Internal Rate' to '44100' in AlsaMixer for getting the correct pitch of sound"
20 modprobe -r snd-emu10k1 &> /dev/null
24 depmod -v $KERNEL_VERSION &> /dev/null