aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files/hotplug.json
diff options
context:
space:
mode:
authorMichael Heimpold <mhei@heimpold.de>2019-11-05 00:39:40 +0100
committerZoltan HERPAI <wigyori@uid0.hu>2019-11-09 12:56:30 +0100
commit2249780fb70eee8d2e9bde6cd0a7d411b23d1e9b (patch)
treebe83ee36563060763d3b333844165a69937d2850 /package/system/procd/files/hotplug.json
parent002e3125385b98bf7f0421c683651f6d6bf852ca (diff)
downloadupstream-2249780fb70eee8d2e9bde6cd0a7d411b23d1e9b.tar.gz
upstream-2249780fb70eee8d2e9bde6cd0a7d411b23d1e9b.tar.bz2
upstream-2249780fb70eee8d2e9bde6cd0a7d411b23d1e9b.zip
procd: start additional consoles during hotplugging
Now that 'start-console' procd command has reached the main repo, we can add a rule to start consoles on serial devices which are created when USB gadget driver reports creation with hotplugging. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Diffstat (limited to 'package/system/procd/files/hotplug.json')
-rw-r--r--package/system/procd/files/hotplug.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index f676bac79e..7e0f129d35 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -37,6 +37,10 @@
[ "load-firmware", "/lib/firmware" ],
[ "return" ]
]
+ ],
+ [ "if",
+ [ "regex", "DEVNAME", "^ttyGS" ],
+ [ "start-console", "%DEVNAME%" ]
]
],
"remove" : [