procd: fix hotplug-preinit.json syntax
[openwrt/.git] / package / system / procd / files / hotplug-preinit.json
1 [
2         [ "case", "ACTION", {
3                 "add": [
4                         [ "if",
5                                 [ "has", "FIRMWARE" ],
6                                 [
7                                         [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ],
8                                         [ "load-firmware", "/lib/firmware" ],
9                                         [ "return" ]
10                                 ]
11                         ]
12                 ]
13         } ],
14         [ "if",
15                 [ "eq", "SUBSYSTEM", "button" ],
16                 [ "exec", "/etc/rc.button/failsafe" ]
17         ]
18 ]