#!/bin/bash
clear
while [ TRUE ] do
echo -en " DMIDECODE MENU ==============
1) BIOS 2) SYSTEM 3) BASEBOARD 4) CHASSIS 5) PROCESSOR 6) MEMORY 7) CACHE 8) CONNECTOR 9) SLOT
Choice: " read ans
clear
case $ans in 1) echo -e "BIOS\n====\n" /usr/sbin/dmidecode --type bios | more ;; 2) echo -e "SYSTEM\n======\n" /usr/sbin/dmidecode --type system | more ;; 3) echo -e "BASEBOARD\n=========\n" /usr/sbin/dmidecode --type baseboard | more ;; 4) echo -e "CHASSIS\n=======\n" /usr/sbin/dmidecode --type chassis | more ;; 5) echo -e "PROCESSOR\n=========\n" /usr/sbin/dmidecode --type processor | more ;; 6) echo -e "MEMORY\n======\n" /usr/sbin/dmidecode --type memory | more ;; 7) echo -e "CACHE\n=====\n" /usr/sbin/dmidecode --type cache | more ;; 8) echo -e "CONNECTOR\n=========\n" /usr/sbin/dmidecode --type connector | more ;; 9) echo -e "SLOT\n====\n" /usr/sbin/dmidecode --type slot | more ;; esac
echo -en "Press any key to continue..." ; read junk clear done