1 # run a command on remove events
2 ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
4 # ignore the events generated by virtual consoles
5 KERNEL=="ptmx", OPTIONS+="last_rule"
6 KERNEL=="console", OPTIONS+="last_rule"
7 KERNEL=="tty" , OPTIONS+="last_rule"
8 KERNEL=="tty[0-9]*", OPTIONS+="last_rule"
9 KERNEL=="pty*", OPTIONS+="last_rule"
10 SUBSYSTEM=="vc", OPTIONS+="last_rule"
12 # do not delete static device nodes
13 ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", \
14 OPTIONS+="ignore_remove"
17 RUN+="socket:/org/kernel/udev/monitor"