Lanner uCPE NCA-4020 Installation Manual page 19

Verified intel select solution for universal customer premises equipment (ucpe)
Hide thumbs Also See for uCPE NCA-4020:
Table of Contents

Advertisement

Appendix B Ubuntu.sh
check=0
if [ "$#" -ne 2 ]; then
echo "Usage: ubuntu.sh <Customer_Name> <base/plus>"
check=1
fi
echo ""
echo "================="
if [ "$2" = "base" ]; then
echo "Intel Select Base for uCPE"
fi;
if [ "$2" = "plus" ]; then
echo "Intel Select Plus for uCPE"
fi;
if [ "$check" = "1" ]; then
echo "Checking for Conformance"
fi;
echo "================="
echo ""
CustomerName=$1
str="_hwsw.log"
file=$CustomerName$str
echo ""
echo "INFO:- File $file will be generated"
echo "INFO:- File $file is generated" > $file
echo "INFO:- ubuntu.sh for uCPE revision 1.1" > $file
date >> $file
echo "" >> $file
echo "=================" >> $file
if [ "$2" = "base" ]; then
echo "Intel Select Base for uCPE on Ubuntu" >> $file
fi;
if [ "$2" = "plus" ]; then
echo "Intel Select Plus for for uCPE on Ubuntu" >> $file
fi;
if [ "$check" = "1" ]; then
echo "Checking for Conformance" >> $file
fi;
echo "=================" >> $file
echo "" >> $file
echo ""
echo "=== CPU Info ==="
lscpu | grep Model
lscpu | grep "CPU(s)"
lscpu | grep Stepping
failstr=""
failplus=""
failbase=""
Microcode=$(cat /proc/cpuinfo | grep microcode | sed -n '1p' | awk '{print $2}')
Microcode=$(cat /proc/cpuinfo | grep microcode | sed -n '1p' | tr -d ' ' | cut -f2 -d":")
echo "microcode: $Microcode"
CpuInfo_Platform=$(lscpu | grep Model | sed -n '2p' | awk '$2 == "Intel(R)" {print $4}')
CpuInfo_SKU=$(lscpu | grep Model | sed -n '2p' | awk '$3 == "Intel(R)" {print $5}')
CPU_Pass=1
CpuXD=$(lscpu | grep Model | sed -n '2p' | awk '$3 == "Intel(R)" {print $5}'|cut -d'-' -f1)
if [ "$2" = "base" ] || [ "$check" = "1" ]; then
if [ "$CpuXD" = "D" ]; then
echo "CPU SKU is Xeon D Family"
CPU_Pass=1
else
failbase="== CPU - not Xeon D Family"
failstr="== CPU - not Xeon D Family"
base=0
CPU_Pass=0;
fi;
fi;
if [ "$2" = "plus" ] || [ "$check" = "1" ]; then
if [ $CpuInfo_SKU = "D-2177NT" ] || [ $CpuInfo_SKU = "D-2187NT" ]; then
echo "CPU SKU $CpuInfo_SKU discovered"
else
19

Advertisement

Table of Contents
loading

Table of Contents