X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fsystem%2Fprocd%2Ffiles%2Fhotplug.json;h=57fc40e54493c25d531b099f1ac38c24561bb896;hb=4529f0511361ef47aa73946d25cabc9f06c4863e;hp=c1b45c6e864ec2e9a3797b11d4b2b91fdcbef2c7;hpb=f1b4824c865b228039d84b2605b2e7e4f34cddeb;p=openwrt-github%2F.git diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index c1b45c6e86..57fc40e544 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -13,7 +13,7 @@ [ "null", "full", "ptmx", "zero" ], ], [ "regex", "DEVNAME", - [ "^gpio", "^hvc", "^tty" ], + [ "^gpio", "^hvc" ], ], ], [ @@ -70,8 +70,17 @@ ], [ "if", [ "eq", "SUBSYSTEM", - [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty" ] + [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ] ], [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] ], + [ "if", + [ "and", + [ "eq", "SUBSYSTEM", "usb-serial" ], + [ "regex", "DEVNAME", + [ "^ttyUSB", "^ttyACM" ] + ], + ], + [ "exec", "/sbin/hotplug-call", "tty" ] + ], ]