X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fsystem%2Fprocd%2Ffiles%2Fhotplug.json;h=e2f16045424ef880d62ed8f8942b5e4696d1c598;hb=5a17ceb0ab6cdc554adc3a3bf1a59429f900a9c7;hp=57fc40e54493c25d531b099f1ac38c24561bb896;hpb=4529f0511361ef47aa73946d25cabc9f06c4863e;p=openwrt-github%2F.git diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index 57fc40e544..e2f1604542 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -57,30 +57,24 @@ ] ] } ], - [ "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", "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%" ] + ] ], ]