mirror of https://github.com/hak5/openwrt.git
22 lines
358 B
JSON
22 lines
358 B
JSON
|
[
|
||
|
[ "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" ]
|
||
|
],
|
||
|
]
|