Posted on Jan 23, 2023 by kingbeowulf
As a follow-up to my previous post regarding obtaining system information via dmidecode, here is a small bash script for a quick motherboard summary using string keywords. This will display a short summary of your motherboard.
1#!/bin/bash 2 3if [ $(id -u) != 0 ]; then 4 echo "Please run as root, or use" 5 echo "su -c \"sh $0\"" 6 exit 1 7fi 8 9echo "Motherboard summary:" 10echo "--------------------" 11 12# string keywords, see 'man dmidecode' 13#bios-vendor, bios-version, bios-release-date, bios-revision, 14#firmware-revision, system-manufacturer, system-product-name, 15#system-version, system-serial-number, system-uuid, 16#system-sku-number, system-family, baseboard-manufacturer, 17#baseboard-product-name, baseboard-version, baseboard-serial-number, 18#baseboard-asset-tag, chassis-manufacturer, chassis-type, 19#chassis-version, chassis-serial-number, chassis-asset-tag, 20#processor-family, processor-manufacturer, processor-version, 21#processor-frequency 22 23for d in system-manufacturer system-product-name bios-release-date bios-version 24do 25 echo "${d^} : " $(dmidecode -s $d) 26done 27exit 0
1# sh mobo_summary.sh 2Motherboard summary: 3-------------------- 4System-manufacturer : Gigabyte Technology Co., Ltd. 5System-product-name : X570 AORUS ELITE 6Bios-release-date : 10/14/2021 7Bios-version : F36e
You can download a copy here. Note that, depending on the manufacturer, not all strings will contain valid information.
Contact:
Try a nice upgrade from EVGA and get a discount!
Tired of Steam, Epic and other rip-off game "stores"? Check out Humble Bundle for your digital download needs! A portion of your hard-earned gaming cash goes to charity.
King Beowulf's Humble Bundle Referral Code