summaryrefslogtreecommitdiff
path: root/package/procd/files/hotplug-preinit.json
blob: d212b22fac33e4a70ba501dfff3e4cee10705e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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" ]
	],
]