aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-06-16 11:52:29 +0200
committerJohn Crispin <john@phrozen.org>2016-06-20 11:48:02 +0200
commit163cc22643cbf6fab3ea235db903050f30a6da5a (patch)
tree211e3b86e12537cbe9d408b757233b3ed91e2032 /package/system/procd/files
parente2d2b136b34e907e9258911537ce002b70e49133 (diff)
downloadupstream-163cc22643cbf6fab3ea235db903050f30a6da5a.tar.gz
upstream-163cc22643cbf6fab3ea235db903050f30a6da5a.tar.bz2
upstream-163cc22643cbf6fab3ea235db903050f30a6da5a.zip
procd: properly set /dev/snd permission and group
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/system/procd/files')
-rw-r--r--package/system/procd/files/hotplug.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index a1c9dc97fc..de8ba105c5 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -32,6 +32,10 @@
],
],
[ "if",
+ [ "regex", "DEVNAME", "^snd" ],
+ [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
+ ],
+ [ "if",
[ "regex", "DEVNAME", "^ttyS" ],
[ "makedev", "/dev/%DEVNAME%", "0664" ],
],