您的位置:首页 > 理论基础 > 计算机网络

Refer to: http://blog.chinaunix.net/u2/60913/showart_1076685.html

2013-10-14 10:17 357 查看
1.Introduction

Refer to http://en.wikipedia.org/wiki/Udev

2. How to write the rules:

Refer to http://www.reactivated.net/writing_udev_rules.html#syntax

3.Issues:

(1) ACTION=="add", KERNEL=="lp[0-9]",PROGRAM="/home/ms1/bin/find_printer.sh"

This rule is to run the script after detect the add event, and then load the printer.

How to change it to load the printer and then run the script?

4.Some command

udevadm monitor: get the udev events

udevadm monitor --env
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐