原文地址:https://www.cnblogs.com/lizhi0755/archive/2013/05/04/3058935.html
使用busybox中的mdev时,默认不配置的情况下,即mdev.conf文件中没有定义时,所有的设备会被重新加载在/dev/目录下(即使在内核驱动中定义了也没有用),所以默认event被加载在/dev/eventXX,修改mdev.conf可修改其路径,该文件定义如下:
-
# mdev.conf
-
#
-
# Syntax:
-
# <regexp> <UID>:<GID> <PERM> [{@,$,*} <CMD>]
-
# @: run <CMD> after creating
-
# $: run <CMD> before removal
-
# *: like @ and $ at the same time
-
# <CMD> is run inside /dev using system()
-
-
# mmc sd
-
mmcblk[0-9] 0:0 0660 @(mount -t vfat -w /dev/$MDEV /mnt)
-
mmcblk[0-9] 0:0 0660 *(umount /mnt)
-
mmcblk[0-9]*p[0-9] 0:0 0660 @(mount -t vfat -w /dev/$MDEV /mnt)
-
mmcblk[0-9]*p[0-9] 0:0 0660 *(umount /mnt)
-
-
# input devices
-
mice 0:0 0660 =input/
-
mouse.* 0:0 0660 =input/
-
event.* 0:0 0660 =input/
-
ts.* 0:0 0660 =input/
阅读(276051) | 评论(0) | 转发(0) |