summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2019-10-23 00:01:54 +0300
committerJason M. Bills <jason.m.bills@linux.intel.com>2019-10-23 00:48:48 +0300
commit456380bb272d3a301c887eee513a3937cc1f48e1 (patch)
tree124399167d539582befbe35ad28377eaea6cc8bc /meta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh
parent9722c6ee87766a45a337c094d1293de81cdcb106 (diff)
downloadopenbmc-456380bb272d3a301c887eee513a3937cc1f48e1.tar.xz
Update to internal 10-22-19
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'meta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh')
-rwxr-xr-xmeta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh b/meta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh
deleted file mode 100755
index 4b7910198..000000000
--- a/meta-openbmc-mods/meta-ast2500/recipes-phosphor/fru/default-fru/checkFru.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# this script checks the gpio id and loads the correct baseboard fru
-fruFile="/etc/fru/baseboard.fru.bin"
-idGpio=( 8 9 10 11 12 53)
-result=0
-idx=0
-
-if [ -f $fruFile ]; then
- exit 0
-fi
-
-cd /etc/fru
-for gpio in "${idGpio[@]}"
-do
- echo $gpio > /sys/class/gpio/export
- typeset -i value=$(cat /sys/class/gpio/gpio$gpio/value)
- value=$((value << idx))
- result=$((result | value))
- idx=$((idx+1))
-done
-
-# wp
-if (($result == 62)); then
- cat WilsonPoint.fru.bin > $fruFile
-# wc
-elif (($result == 45)); then
- cat WilsonCity.fru.bin > $fruFile
-# cyp
-elif (($result == 60)); then
- cat M50CYP2SB2U.fru.bin > $fruFile
-# tnp
-elif (($result == 12)); then
- cat D50TNP1SB.fru.bin > $fruFile
-# default to wft
-else
- cat S2600WFT.fru.bin > $fruFile
-fi