summaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-06-06 00:13:01 +0200
committerJohn Crispin <john@phrozen.org>2016-06-06 14:58:11 +0200
commit7cc4fa1ae10c18fd088217955ace413a9faf91e3 (patch)
treece34b80cd00e8201bea9e297238a880b0033f58e /package/system
parent563e9d5e1b26be6d98f04f9cdb3f307f27757b38 (diff)
downloadmaster-31e0f0ae-7cc4fa1ae10c18fd088217955ace413a9faf91e3.tar.gz
master-31e0f0ae-7cc4fa1ae10c18fd088217955ace413a9faf91e3.tar.bz2
master-31e0f0ae-7cc4fa1ae10c18fd088217955ace413a9faf91e3.zip
procd: fix file permissions of /dev/tty* nodes
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/system')
-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" ],
],