From 7cc4fa1ae10c18fd088217955ace413a9faf91e3 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 6 Jun 2016 00:13:01 +0200 Subject: [PATCH] procd: fix file permissions of /dev/tty* nodes Signed-off-by: John Crispin --- package/system/procd/files/hotplug.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" ], @@ -31,6 +31,10 @@ [ "return" ], ], ], + [ "if", + [ "regex", "DEVNAME", "^ttyS" ], + [ "makedev", "/dev/%DEVNAME%", "0664" ], + ], [ "if", [ "has", "DEVNAME" ], [ "makedev", "/dev/%DEVNAME%", "0644" ], -- 2.30.2