This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################### | |
## ## | |
## Build and package OpenSSL static libraries for OSX/iOS ## | |
## ## | |
## This script is in the public domain. ## | |
## Creator : Laurent Etiemble ## | |
## ## | |
############################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run a PCI/SMBios/net inventory scan and upload the results. This gives us a | |
# way of tracking nodes to some extent, leaving us less blind than usual. | |
# | |
# We use the iPXE pciscan command to enumerate the PCI bus. For each device, we | |
# check the 'header type' register at offset 0x0e. If it's type 0 (endpoint), | |
# we can read the subsystem vendor and device registers too. Unfortunately, if | |
# the 7th bit of the header type field is set (0x80), it indicates a | |
# multi-function device. So to check the type, this bit should be masked out. | |
# Masking is not possible with iPXE commands, so we have to duplicate some of | |
# the iseq tests. |