hotplug2: Use stricter matching for rule regular expressions
SVN-Revision: 25282v19.07.3_mercusys_ac12_duma
parent
be8e23827a
commit
824331a594
@ -1,5 +1,5 @@
|
||||
$include /etc/hotplug2-common.rules
|
||||
|
||||
SUBSYSTEM ~~ button {
|
||||
SUBSYSTEM == button {
|
||||
exec kill -USR1 1
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
$include /etc/hotplug2-common.rules
|
||||
|
||||
SUBSYSTEM ~~ (net|input|button|usb|platform|ieee1394|block|atm) {
|
||||
SUBSYSTEM ~~ (^net$|^input$|^button$|^usb$|^platform$|^ieee1394$|^block$|^atm$) {
|
||||
exec /sbin/hotplug-call %SUBSYSTEM%
|
||||
}
|
||||
|
||||
DEVICENAME ~~ (watchdog) {
|
||||
DEVICENAME == watchdog {
|
||||
exec /sbin/watchdog -t 5 /dev/watchdog
|
||||
next
|
||||
next-event
|
||||
}
|
||||
|
Loading…
Reference in New Issue