summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-wolfpass/recipes-phosphor/fru/default-fru/decodeBoardID.sh
blob: bcf2ade3f212d83203dbb5ad8056df251e9255d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# this script uses the BOARD_ID set from checkFru.sh and provides the NAME,
# PRODID, and EEPROM_FRU values for this platform
decode_board_id() {
    if grep -q 'CPU part\s*: 0xb76' /proc/cpuinfo; then
        # AST2500
        if [ -f $fruFile -a -f $prodIDFile -a $BOARD_ID -ne 0 ]; then
            exit 0
        fi
        NAME="S2600WFT"
        PRODID="0x7b"
    fi
}