From 2249780fb70eee8d2e9bde6cd0a7d411b23d1e9b Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Tue, 5 Nov 2019 00:39:40 +0100 Subject: 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 --- package/system/procd/files/hotplug.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/system/procd/files/hotplug.json') 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" : [ -- cgit v1.2.3