aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/procd')
-rw-r--r--package/system/procd/files/hotplug.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index e2f1604542..a1c9dc97fc 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -10,7 +10,7 @@
[ "if",
[ "or",
[ "eq", "DEVNAME",
- [ "null", "full", "ptmx", "zero" ],
+ [ "null", "full", "ptmx", "zero", "tty" ],
],
[ "regex", "DEVNAME",
[ "^gpio", "^hvc" ],
@@ -32,6 +32,10 @@
],
],
[ "if",
+ [ "regex", "DEVNAME", "^ttyS" ],
+ [ "makedev", "/dev/%DEVNAME%", "0664" ],
+ ],
+ [ "if",
[ "has", "DEVNAME" ],
[ "makedev", "/dev/%DEVNAME%", "0644" ],
],