dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

hardwareinfo.sh (688B)


      1 #!/bin/sh
      2 if [ "$(uname)" != "Linux" ]; then
      3     echo "this script only works on linux"
      4     exit 1
      5 fi
      6 
      7 c="sudo dmidecode -s"
      8 
      9 echo "# bios"
     10 $c bios-vendor
     11 $c bios-version
     12 $c bios-release-date
     13 
     14 echo "# system"
     15 $c system-manufacturer
     16 $c system-product-name
     17 $c system-version
     18 $c system-serial-number
     19 $c system-uuid
     20 
     21 echo "# baseboard"
     22 $c baseboard-manufacturer
     23 $c baseboard-product-name
     24 $c baseboard-version
     25 $c baseboard-serial-number
     26 $c baseboard-asset-tag
     27 
     28 echo "# chassis"
     29 $c chassis-manufacturer
     30 $c chassis-type
     31 $c chassis-version
     32 $c chassis-serial-number
     33 $c chassis-asset-tag
     34 
     35 echo "# processor"
     36 $c processor-family
     37 $c processor-manufacturer
     38 $c processor-version
     39 $c processor-frequency