2016-11-29, 20:31
Hi,
I am trying to add a sleep or ifclose command in case I find a pci or network card, all this in my boot menu just before booting.
I am trying something like this:
However, when pciscan attr command is run attr is never set
I am doing something like below instead:
works, but it is nasty and takes a while
please advice
I am trying to add a sleep or ifclose command in case I find a pci or network card, all this in my boot menu just before booting.
I am trying something like this:
Code:
:scan pciscan addr || goto scan_done
#echo Found PCI device ${addr:busdevfn}
iseq ${pci/${addr}.0.2}:${pci/${addr}.2.2} 8086:ffff && ifclose ||
goto scan
:scan_done
I am doing something like below instead:
Code:
set addr:uint16 0
:loop
set pci ${pci/${addr}.0.2}:${pci/${addr}.2.2}
iseq ${pci} ffff:ffff || echo ${addr:busdevfn}: ${pci}
inc addr
iseq ${addr} 0xffff || goto loop
please advice