Przeglądaj źródła

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

Signed-off-by: John Crispin <[email protected]>
John Crispin 9 lat temu
rodzic
commit
7cc4fa1ae1
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      package/system/procd/files/hotplug.json

+ 5 - 1
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" ],