procd: fix file permissions of /dev/tty* nodes
authorJohn Crispin <john@phrozen.org>
Sun, 5 Jun 2016 22:13:01 +0000 (00:13 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 6 Jun 2016 12:58:11 +0000 (14:58 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
package/system/procd/files/hotplug.json

index e2f16045424ef880d62ed8f8942b5e4696d1c598..a1c9dc97fc0546384b524963b4f21ee80aa55d99 100644 (file)
@@ -10,7 +10,7 @@
                                        [ "if",
                                                [ "or",
                                                        [ "eq", "DEVNAME",
-                                                               [ "null", "full", "ptmx", "zero" ],
+                                                               [ "null", "full", "ptmx", "zero", "tty" ],
                                                        ],
                                                        [ "regex", "DEVNAME",
                                                                [ "^gpio", "^hvc" ],
                                                        [ "return" ],
                                                ],
                                        ],
+                                       [ "if",
+                                               [ "regex", "DEVNAME", "^ttyS" ],
+                                               [ "makedev", "/dev/%DEVNAME%", "0664" ],
+                                       ],
                                        [ "if",
                                                [ "has", "DEVNAME" ],
                                                [ "makedev", "/dev/%DEVNAME%", "0644" ],