summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pm/pm-functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index 4ae6fc6..71dac93 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -85,7 +85,7 @@ done
. "${PM_FUNCTIONS}"
-if command_exists dmidecode; then
+if [ "$(id -u)" = "0" ] && command_exists dmidecode; then
export CHASSIS_TYPE="$(dmidecode -s chassis-type)"
else
export CHASSIS_TYPE=Unknown