summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-dmi
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-show-dmi')
-rwxr-xr-xscripts/vyatta-show-dmi15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/vyatta-show-dmi b/scripts/vyatta-show-dmi
new file mode 100755
index 0000000..38233e7
--- /dev/null
+++ b/scripts/vyatta-show-dmi
@@ -0,0 +1,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