projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem
[openwrt-github/.git]
/
package
/
system
/
procd
/
files
/
hotplug.json
diff --git
a/package/system/procd/files/hotplug.json
b/package/system/procd/files/hotplug.json
index bcd169034b342d405a2802cca292524b11d04252..b3121789e0ace21917ba3989ad7f34c59fac8f1e 100644
(file)
--- a/
package/system/procd/files/hotplug.json
+++ b/
package/system/procd/files/hotplug.json
@@
-69,15
+69,18
@@
[ "exec", "/etc/rc.button/%BUTTON%" ]
],
[ "if",
[ "exec", "/etc/rc.button/%BUTTON%" ]
],
[ "if",
- [ "or",
+ [ "eq", "SUBSYSTEM",
+ [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
+ ],
+ [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
+ ],
+ [ "if",
+ [ "and",
[ "eq", "SUBSYSTEM",
[ "eq", "SUBSYSTEM",
- [ "
net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "button" ],
+ [ "
tty", "usb-serial" ]
],
],
- [ "and",
- [ "eq", "SUBSYSTEM", "tty" ],
- [ "regex", "DEVNAME", "^ttyUSB" ],
- ]
+ [ "regex", "DEVNAME", "^ttyUSB" ],
],
],
- [ "exec", "/sbin/hotplug-call", "
%SUBSYSTEM%
" ]
+ [ "exec", "/sbin/hotplug-call", "
tty
" ]
],
]
],
]