mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 22:27:47 -04:00
ofwfb: Check for /chosen/stdout-path in addition to /chosen/stdout
Some platforms use /chosen/stdout-path as the property containing the path to the stdout node, not /chosen/stdout.
This commit is contained in:
parent
0053ed28ff
commit
1dbd2e8c7c
1 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,10 @@ ofwfb_probe(struct vt_device *vd)
|
|||
if (OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)) ==
|
||||
sizeof(stdout))
|
||||
node = OF_instance_to_package(stdout);
|
||||
if (node == -1)
|
||||
if (OF_getprop(chosen, "stdout-path", &stdout, sizeof(stdout)) ==
|
||||
sizeof(stdout))
|
||||
node = OF_instance_to_package(stdout);
|
||||
if (node == -1) {
|
||||
/*
|
||||
* The "/chosen/stdout" does not exist try
|
||||
|
|
|
|||
Loading…
Reference in a new issue