projects
/
openwrt
/
staging
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
563e9d5
)
procd: fix file permissions of /dev/tty* nodes
author
John Crispin
<john@phrozen.org>
Sun, 5 Jun 2016 22:13:01 +0000
(
00:13
+0200)
committer
John 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
patch
|
blob
|
history
diff --git
a/package/system/procd/files/hotplug.json
b/package/system/procd/files/hotplug.json
index e2f16045424ef880d62ed8f8942b5e4696d1c598..a1c9dc97fc0546384b524963b4f21ee80aa55d99 100644
(file)
--- 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" ],