[procd] update to latest git head
[openwrt.git] / package / procd / files / hotplug-preinit.json
diff --git a/package/procd/files/hotplug-preinit.json b/package/procd/files/hotplug-preinit.json
new file mode 100644 (file)
index 0000000..d212b22
--- /dev/null
@@ -0,0 +1,21 @@
+[
+       [ "case", "ACTION", {
+               "add": [
+                       [ "if",
+                               [ "has", "FIRMWARE" ],
+                               [
+                                       [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ],
+                                       [ "load-firmware", "/lib/firmware" ],
+                                       [ "return" ]
+                               ]
+                       ],
+               ],
+       }, ],
+       [ "if",
+               [ "and",
+                       [ "eq", "SUBSYSTEM", "button" ],
+                       [ "eq", "BUTTON", "reset" ],
+               ],
+               [ "exec", "/etc/rc.button/failsafe" ]
+       ],
+]