procd: fix file permissions of /dev/tty* nodes
[openwrt/staging/noltari.git] / 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" ],