2007-12-01 17:08:04 +00:00
|
|
|
|
2010-04-10 18:35:14 +00:00
|
|
|
# uncomment me to log hotplug events
|
|
|
|
# DEVPATH is set {
|
|
|
|
# exec logger -s -t hotplug -p daemon.info "name=%DEVICENAME%, path=%DEVPATH%"
|
|
|
|
# }
|
|
|
|
|
2011-02-01 16:37:53 +00:00
|
|
|
DEVICENAME ~~ (^null$|^full$|^ptmx$|^tty|^zero$|^gpio|^hvc) {
|
2007-12-01 17:08:04 +00:00
|
|
|
makedev /dev/%DEVICENAME% 0666
|
2011-01-31 22:29:31 +00:00
|
|
|
next-event
|
2007-12-01 17:08:04 +00:00
|
|
|
}
|
|
|
|
|
2011-02-01 16:37:53 +00:00
|
|
|
DEVICENAME ~~ (^tun|^tap[0-9]$) {
|
2007-12-01 17:08:04 +00:00
|
|
|
makedev /dev/net/%DEVICENAME% 0644
|
|
|
|
}
|
|
|
|
|
2011-02-01 16:37:53 +00:00
|
|
|
DEVICENAME ~~ ^ppp {
|
2007-12-01 17:08:04 +00:00
|
|
|
makedev /dev/%DEVICENAME% 0600
|
|
|
|
}
|
|
|
|
|
2011-02-02 01:23:34 +00:00
|
|
|
DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) {
|
2007-12-01 17:08:04 +00:00
|
|
|
makedev /dev/snd/%DEVICENAME% 0644
|
2011-01-31 22:29:31 +00:00
|
|
|
next-event
|
2007-12-01 17:08:04 +00:00
|
|
|
}
|
|
|
|
|
2011-02-01 16:37:53 +00:00
|
|
|
DEVICENAME ~~ ^lp[0-9]$ {
|
2009-09-28 20:05:50 +00:00
|
|
|
makedev /dev/%DEVICENAME% 0644
|
2011-01-31 22:29:31 +00:00
|
|
|
next-event
|
2009-09-28 20:05:50 +00:00
|
|
|
}
|
|
|
|
|
2011-02-01 16:37:53 +00:00
|
|
|
DEVPATH is set, SUBSYSTEM == input {
|
2009-03-09 15:06:15 +00:00
|
|
|
makedev /dev/input/%DEVICENAME% 0644
|
|
|
|
}
|
|
|
|
|
2010-02-12 01:37:02 +00:00
|
|
|
DEVICENAME == device-mapper {
|
2010-04-03 18:21:02 +00:00
|
|
|
makedev /dev/mapper/control 0600
|
2010-02-12 01:37:02 +00:00
|
|
|
}
|
|
|
|
|
2007-12-01 17:08:04 +00:00
|
|
|
DEVPATH is set {
|
|
|
|
makedev /dev/%DEVICENAME% 0644
|
|
|
|
}
|
|
|
|
|
2010-04-03 18:21:02 +00:00
|
|
|
FIRMWARE is set, ACTION == add {
|
2011-02-06 14:35:07 +00:00
|
|
|
exec /sbin/hotplug-call firmware
|
2010-04-03 18:21:02 +00:00
|
|
|
load-firmware /lib/firmware
|
2011-01-31 22:29:31 +00:00
|
|
|
next-event
|
2007-12-01 17:08:04 +00:00
|
|
|
}
|