代码: 全选
#!/bin/sh
#soundscript
case $1 in
start)
echo "Start sound ..."
/sbin/modprobe ad1848
/sbin/modprobe uart401
/sbin/modprobe cs4232
;;
stop)
echo "Stop sound ..."
rmmod cs4232
rmmod uart401
rmmod ad1848
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
2. copy the below and copy to /etc/modutils/sound
代码: 全选
alias sound-slot-0 cs4232
alias sound-service-0-3 cs4232
alias sound-service-0-0 cs4232
options sound dmabuf=1
options cs4232 io=0x530 irq=5 dma=1 dma2=0 isapnp=0 mpuio=0x330 mpuirq=5 synthio=0x338 synthirq=9
options opl3 io=0x388
options wavefront io=0x338 irq=9
3. delete from /etc/modutils all sndconfig, alsa-base, etc
4. run updates-modules
5. softlink /etc/init.d/sound to S79sound in all /etc/rc[2-5].d
directories. I have also delete all the S20alsa links.
操作如下:
1、把代码保存为/etc/init.d/目录下的sound文件。
2、把代码保存为/etc/modutils/目录下的sound文件。
3、怎样来操作?
4、是否执行update-modules
5、怎样来操作?
请高手过招。