在云端,看梦想

Welcome to LiZhi's Blog!

代码即文章,每个程序员都应该是个优秀的作家!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

使用busybox中的mdev时,默认不配置的情况下,即mdev.conf文件中没有定义时,所有的设备会被重新加载在/dev/目录下(即使在内核驱动中定义了也没有用),所以默认event被加载在/dev/eventXX,修改mdev.conf可修改其路径,该文件定义如下:

 

 1 # mdev.conf 
 2 #
 3 # Syntax:
 4 # <regexp> <UID>:<GID> <PERM> [{@,$,*} <CMD>]
 5 # @: run <CMD> after creating
 6 # $: run <CMD> before removal
 7 # *: like @ and $ at the same time
 8 # <CMD> is run inside /dev using system()
 9 
10 # mmc sd
11 mmcblk[0-9]         0:0     0660    @(mount -t vfat -w /dev/$MDEV /mnt)
12 mmcblk[0-9]         0:0     0660    *(umount /mnt)
13 mmcblk[0-9]*p[0-9]  0:0     0660    @(mount -t vfat -w /dev/$MDEV /mnt)
14 mmcblk[0-9]*p[0-9]  0:0     0660    *(umount /mnt)
15 
16 # input devices
17 mice                0:0     0660    =input/
18 mouse.*             0:0     0660    =input/
19 event.*             0:0     0660    =input/
20 ts.*                0:0     0660    =input/

 

 

posted on 2013-05-04 09:54  三胖他爹  阅读(2170)  评论(0编辑  收藏  举报