LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 945|回复: 4

请教udev的配置

[复制链接]
发表于 2007-5-21 11:16:52 | 显示全部楼层 |阅读模式
在我的机器上面启动的时候会有错误提示:
ERROR: cannot run ipw3945d until sysinit completes
ipw3945d will be started in the boot runlevel

我理解是在sysinit的时候是不能运行ipw3945d这个deamon的,但是我看到/etc/modprobe.conf里面有
install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /etc/init.d/ipw3945d start

这样的命令,这个命令应该是装载了ipw3945这个内核模块,但是接着就运行了ipw3945d这个deamon,好像有点矛盾了,/etc/modprobe.conf这个文件是update-modules的时候自动生成的,并不推荐直接修改这个文件,那么我想达到只装载ipw3495模块而不执行ipw3945d应该怎么在udev里面配置呢?
发表于 2007-5-21 12:44:16 | 显示全部楼层
google 一下,只找到这个
[quote]
Ok, I solved this!

First, the error has always existed. The changes to udev to make it work with a silent fbsplash simply made udev a little *too* verbose in printing errors to console. The solution is to modify /etc/modules.d/ipw3945d to not print any errors and return a successful exit code.

Here's the modified file (I'll make a bugzilla bug on it shortly):
/etc/modules.d/ipw3945d:
install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /etc/init.d/ipw3945d start > /dev/null; exit 0
remove ipw3945 /etc/init.d/ipw3945d stop > /dev/null; /sbin/modprobe -r --ignore-remove ipw3945

The drawback is now that we won't know if it fails or succeeds when running manually, but it should almost never *be* run manually (i.e. modprobe ipw3945 or modprobe -r ipw3945).
[\quote]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-21 14:08:38 | 显示全部楼层
Post by Blahster
google 一下,只找到这个
[quote]
Ok, I solved this!

First, the error has always existed. The changes to udev to make it work with a silent fbsplash simply made udev a little *too* verbose in printing errors to console. The solution is to modify /etc/modules.d/ipw3945d to not print any errors and return a successful exit code.

Here's the modified file (I'll make a bugzilla bug on it shortly):
/etc/modules.d/ipw3945d:
install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /etc/init.d/ipw3945d start > /dev/null; exit 0
remove ipw3945 /etc/init.d/ipw3945d stop > /dev/null; /sbin/modprobe -r --ignore-remove ipw3945

The drawback is now that we won't know if it fails or succeeds when running manually, but it should almost never *be* run manually (i.e. modprobe ipw3945 or modprobe -r ipw3945).
[\quote]

这个只是屏蔽的错误,呵呵 那我直接把/etc/init.d/ipw3945d start这个去掉,然后再手工启动
回复 支持 反对

使用道具 举报

发表于 2007-5-21 15:13:32 | 显示全部楼层
Post by liwenqiu
[QUOTE=Blahster]google 一下,只找到这个

这个只是屏蔽的错误,呵呵 那我直接把/etc/init.d/ipw3945d start这个去掉,然后再手工启动

所以我才说"只"找到这个.
看看/etc/udev/rules.d/95-udev-late.rules吧
回复 支持 反对

使用道具 举报

发表于 2007-5-21 15:19:06 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表