[ "null", "full", "ptmx", "zero" ],
],
[ "regex", "DEVNAME",
- [ "^gpio", "^hvc", "^tty" ],
+ [ "^gpio", "^hvc" ],
],
],
[
]
]
} ],
- [ "if",
- [ "eq", "SUBSYSTEM", "platform" ],
- [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
- ],
[ "if",
[ "and",
[ "has", "BUTTON" ],
[ "eq", "SUBSYSTEM", "button" ],
],
- [ "exec", "/etc/rc.button/%BUTTON%" ]
- ],
- [ "if",
- [ "eq", "SUBSYSTEM",
- [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
- ],
- [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
+ [ "button", "/etc/rc.button/%BUTTON%" ]
],
[ "if",
[ "and",
- [ "eq", "SUBSYSTEM",
- [ "tty", "usb-serial" ]
- ],
- [ "regex", "DEVNAME", "^ttyUSB" ],
+ [ "eq", "SUBSYSTEM", "usb-serial" ],
+ [ "regex", "DEVNAME",
+ [ "^ttyUSB", "^ttyACM" ]
+ ]
],
- [ "exec", "/sbin/hotplug-call", "tty" ]
+ [ "exec", "/sbin/hotplug-call", "tty" ],
+ [ "if",
+ [ "isdir", "/etc/hotplug.d/%SUBSYSTEM%" ],
+ [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
+ ]
],
]