summaryrefslogtreecommitdiff
path: root/package/system/procd
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2017-08-18 15:06:25 +0200
committerJohn Crispin <john@phrozen.org>2017-08-18 18:43:54 +0200
commit5209cfa534293cb6d27574b51d03bd69a5defb0c (patch)
tree008cde33f50303b457915b21e27172ffc0b2e21f /package/system/procd
parenta307480e2dad6754ea9dfd2c0627da57609b4150 (diff)
downloadmtk-20170518-5209cfa534293cb6d27574b51d03bd69a5defb0c.zip
mtk-20170518-5209cfa534293cb6d27574b51d03bd69a5defb0c.tar.gz
mtk-20170518-5209cfa534293cb6d27574b51d03bd69a5defb0c.tar.bz2
procd: fix hotplug.json syntax
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'package/system/procd')
-rw-r--r--package/system/procd/files/hotplug.json26
1 files changed, 11 insertions, 15 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index 168f9b8..1c949bb 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -4,31 +4,27 @@
[ "if",
[ "and",
[ "has", "MAJOR" ],
- [ "has", "MINOR" ],
+ [ "has", "MINOR" ]
],
[
[ "if",
[ "eq", "DEVNAME",
- [ "null", "full", "ptmx", "zero", "tty", "net", "random", "urandom" ],
+ [ "null", "full", "ptmx", "zero", "tty", "net", "random", "urandom" ]
],
[
[ "makedev", "/dev/%DEVNAME%", "0666" ],
- [ "return" ],
+ [ "return" ]
]
],
[ "if",
[ "regex", "DEVNAME", "^snd" ],
- [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
- ],
- [ "if",
- [ "regex", "DEVNAME", "^tty" ],
- [ "makedev", "/dev/%DEVNAME%", "0660", "tty" ],
+ [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ]
],
[ "if",
[ "has", "DEVNAME" ],
- [ "makedev", "/dev/%DEVNAME%", "0600" ],
- ],
- ],
+ [ "makedev", "/dev/%DEVNAME%", "0600" ]
+ ]
+ ]
],
[ "if",
[ "has", "FIRMWARE" ],
@@ -37,14 +33,14 @@
[ "load-firmware", "/lib/firmware" ],
[ "return" ]
]
- ],
+ ]
],
"remove" : [
[ "if",
[ "and",
[ "has", "DEVNAME" ],
[ "has", "MAJOR" ],
- [ "has", "MINOR" ],
+ [ "has", "MINOR" ]
],
[ "rm", "/dev/%DEVNAME%" ]
]
@@ -53,7 +49,7 @@
[ "if",
[ "and",
[ "has", "BUTTON" ],
- [ "eq", "SUBSYSTEM", "button" ],
+ [ "eq", "SUBSYSTEM", "button" ]
],
[ "button", "/etc/rc.button/%BUTTON%" ]
],
@@ -69,5 +65,5 @@
[ "isdir", "/etc/hotplug.d/%SUBSYSTEM%" ],
[ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
]
- ],
+ ]
]