[问题] 请问高手,怎样实现以下操作?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
lb_ok
帖子: 26
注册时间: 2006-07-20 16:25

[问题] 请问高手,怎样实现以下操作?

#1

帖子 lb_ok » 2006-07-25 9:16

1. copy the below and save to /etc/init.d/sound

代码: 全选

#!/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、怎样来操作?

请高手过招。
:D :D
Dreamer
帖子: 22
注册时间: 2005-10-14 22:46

#2

帖子 Dreamer » 2006-07-25 12:13

那是告诉你使用gedit或者其他文本编辑软件,把所述的内容拷贝到gedit里面的新建文件。然后将新建文件保存为 /etc/init.d/sound文件。...
至于3、4、5项需要用到一些命令或者在文件管理器里面操作的。
lb_ok
帖子: 26
注册时间: 2006-07-20 16:25

#3

帖子 lb_ok » 2006-07-25 12:28

我也就是3、4、5项不会操作,能讲具体一点吗?

谢谢!
回复