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 e2f1604..a1c9dc9 100644 (file)
@@ -10,7 +10,7 @@
                                        [ "if",
                                                [ "or",
                                                        [ "eq", "DEVNAME",
                                        [ "if",
                                                [ "or",
                                                        [ "eq", "DEVNAME",
-                                                               [ "null", "full", "ptmx", "zero" ],
+                                                               [ "null", "full", "ptmx", "zero", "tty" ],
                                                        ],
                                                        [ "regex", "DEVNAME",
                                                                [ "^gpio", "^hvc" ],
                                                        ],
                                                        [ "regex", "DEVNAME",
                                                                [ "^gpio", "^hvc" ],
                                                        [ "return" ],
                                                ],
                                        ],
                                                        [ "return" ],
                                                ],
                                        ],
+                                       [ "if",
+                                               [ "regex", "DEVNAME", "^ttyS" ],
+                                               [ "makedev", "/dev/%DEVNAME%", "0664" ],
+                                       ],
                                        [ "if",
                                                [ "has", "DEVNAME" ],
                                                [ "makedev", "/dev/%DEVNAME%", "0644" ],
                                        [ "if",
                                                [ "has", "DEVNAME" ],
                                                [ "makedev", "/dev/%DEVNAME%", "0644" ],