[package] hotplug2: Use stricter matching for rule regular expressions
[openwrt/svn-archive/archive.git] / package / hotplug2 / files / hotplug2.rules
index e8847f2f65ec3c95108c4be63dfa6202a76057d4..a7a4730105f81ad1b8137ac754ea4f4225b6a2ab 100644 (file)
@@ -1,10 +1,10 @@
 $include /etc/hotplug2-common.rules
 
-SUBSYSTEM ~~ (net|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
 }