procd: fix file permissions of /dev/tty* nodes

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin 2016-06-06 00:13:01 +02:00
parent 563e9d5e1b
commit 7cc4fa1ae1

View File

@ -10,7 +10,7 @@
[ "if", [ "if",
[ "or", [ "or",
[ "eq", "DEVNAME", [ "eq", "DEVNAME",
[ "null", "full", "ptmx", "zero" ], [ "null", "full", "ptmx", "zero", "tty" ],
], ],
[ "regex", "DEVNAME", [ "regex", "DEVNAME",
[ "^gpio", "^hvc" ], [ "^gpio", "^hvc" ],
@ -31,6 +31,10 @@
[ "return" ], [ "return" ],
], ],
], ],
[ "if",
[ "regex", "DEVNAME", "^ttyS" ],
[ "makedev", "/dev/%DEVNAME%", "0664" ],
],
[ "if", [ "if",
[ "has", "DEVNAME" ], [ "has", "DEVNAME" ],
[ "makedev", "/dev/%DEVNAME%", "0644" ], [ "makedev", "/dev/%DEVNAME%", "0644" ],