X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fsystem%2Fprocd%2Ffiles%2Fhotplug.json;fp=package%2Fsystem%2Fprocd%2Ffiles%2Fhotplug.json;h=e2f16045424ef880d62ed8f8942b5e4696d1c598;hb=a83e1e412c1499a4bd8e4c25e1207dcd78a5b35c;hp=516a122f0ebf05ba0d52e831bd0f4c8dbfae7d54;hpb=4d2ee015809da7d6f0453d72b4ada5195788daa9;p=openwrt-github%2F.git diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index 516a122f0e..e2f1604542 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -57,10 +57,6 @@ ] ] } ], - [ "if", - [ "eq", "SUBSYSTEM", "platform" ], - [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] - ], [ "if", [ "and", [ "has", "BUTTON" ], @@ -68,19 +64,17 @@ ], [ "button", "/etc/rc.button/%BUTTON%" ] ], - [ "if", - [ "eq", "SUBSYSTEM", - [ "net", "input", "usb", "usbmisc", "ieee1394", "block", "atm", "zaptel", "tty", "button", "sound" ] - ], - [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] - ], [ "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%" ] + ] ], ]