udev rule not working in ubuntu 12.0
来源:互联网 发布:h5小游戏源码免费下载 编辑:程序博客网 时间:2024/05/16 19:26
产品的代码里有个功能通过udev实现,udev rules如下:
ACTION==”add“,KERNEL==”sdb“,RUN+="/sbin/raw /dev/raw/raw1 %N"
该规则在ubuntu 10.0下面work fine,但是在ubuntu 12.0下面运行就不可以。
通过”man udev“比较了下10.0和12.0下面的文档,发现没有什么区别。
然后google了下,说是自10.0后udev rule有一些改变。但是试了好多方法,都没有成功。
然后发现了一条有用的命令:”sudo udevadm monitor --property“,该命令可以输出执行”sudo udevadm trigger“后的log。通过该命令看到,在12.0下面ACTION是”change”,在10.0下面ACTION是“add”,然后将rule改为如下:
ACTION==“change”,KERNEL==“sdb”,RUN+="/sbin/raw /dev/raw/raw1 %N"
然后规则就正确执行了。
但是还是没有找到比较官方的文档来说明这个区别。
0 0
- udev rule not working in ubuntu 12.0
- .trim() in JavaScript not working in IE
- not working in mobile web forms!
- Default namespace not working in Dotnet API.
- Unwind Segue not working in iOS 8
- Why is .innerText not working in Firefox?
- Maven Dependency Search Not Working in Eclipse
- Ajax second postback not working in Sharepoint in UpdatePanel
- Parse Xml In Js Not Working In Xampp With Ie9
- $.ajax not working in chrome but is working in firefox and IE
- HAX is not working and emulator runs in emulation mode
- Unwind Segue not working in iOS 8问题解决
- HAX is not working and emulator runs in emulation mode
- MouseLeftButtonDown event not working for Textbox in Silverlight
- HAX is not working and emulator runs in emulation mode
- Open Declaration - not working in Eclipse for Zend Framework
- HAXM is not working and emulator runs in emulation mode
- cordova local notification sound not working in ios and andorid
- android线程
- PAgP Silent/Non-silent Mode
- 由12306.cn谈谈网站性能技术
- 声音对象
- 给信管专业学生的一封信:【分享】在线教育 及 终身学习,值得大家实践
- udev rule not working in ubuntu 12.0
- iOS多线程编程之NSThread的使用
- 程序静态分析
- 探究mybatis 是如何加载配置文件的
- chattr测试
- MySQL性能优化的最佳20+条经验
- 使用 CXF 做 webservice 简单例子
- POJ 2352 Stars
- homology的几何解释