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 {
|
2012-07-14 19:59:44 +00:00
|
|
|
# exec logger -s -t hotplug -p daemon.info "name=%DEVNAME%, path=%DEVPATH%"
|
2010-04-10 18:35:14 +00:00
|
|
|
# }
|
|
|
|
|
2011-02-07 22:28:09 +00:00
|
|
|
$include /etc/hotplug2-platform.rules
|
|
|
|
|
2012-07-14 19:59:44 +00:00
|
|
|
DEVNAME ~~ (^null$|^full$|^ptmx$|^zero$|^gpio|^hvc) {
|
|
|
|
makedev /dev/%DEVNAME% 0666
|
2011-01-31 22:29:31 +00:00
|
|
|
next-event
|
2007-12-01 17:08:04 +00:00
|
|
|
}
|
|
|
|
|
2012-07-14 19:59:44 +00:00
|
|
|
DEVNAME == mapper/control {
|
|
|
|
makedev /dev/%DEVNAME% 0600
|
2011-05-03 19:37:59 +00:00
|
|
|
next-event
|
2010-02-12 01:37:02 +00:00
|
|
|
}
|
|
|
|
|
2011-05-03 19:37:59 +00:00
|
|
|
ACTION == add, DEVPATH is set {
|
2012-07-14 19:59:44 +00:00
|
|
|
makedev /dev/%DEVNAME% 0644
|
2007-12-01 17:08:04 +00:00
|
|
|
}
|
|
|
|
|
2012-07-14 19:59:44 +00:00
|
|
|
ACTION == add, DEVPATH is set, DEVNAME ~~ ^tty {
|
|
|
|
chmod 0666 /dev/%DEVNAME%
|
2011-05-03 19:37:59 +00:00
|
|
|
}
|
|
|
|
|
2012-07-14 19:59:44 +00:00
|
|
|
ACTION == add, DEVPATH is set, DEVNAME ~~ ^ppp {
|
|
|
|
chmod 0600 /dev/%DEVNAME%
|
2011-05-03 19:37:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set {
|
2012-07-14 19:59:44 +00:00
|
|
|
remove /dev/%DEVNAME%
|
2011-05-03 19:37:59 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
2011-11-05 17:16:01 +00:00
|
|
|
|
|
|
|
SUBSYSTEM == platform {
|
|
|
|
exec /sbin/hotplug-call %SUBSYSTEM%
|
|
|
|
}
|