summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-dmi
blob: 38233e7e12ec908243e170e24088afe7c9a99b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ ! -d /sys/class/dmi ]; then
	echo "DMI information not available"
	exit 1
fi

for var in /sys/class/dmi/id/*
do
   tag=$(basename $var)
   if [ -f $var -a -r $var -a $tag != uevent -a $tag != modalias ]; then
	echo -n "$tag: "
	cat $var
   fi
done