summaryrefslogtreecommitdiff
path: root/pm/pm-functions.in
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-09-27 08:42:27 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-09-27 08:42:27 -0500
commit268ad38428662c410c7c70ccf561dab8ee6ecd50 (patch)
tree4b2724e69efc5ba72b2d52d141dd51145c9beae5 /pm/pm-functions.in
parentdd430a021b2d413a1b6ffc8e9fbe104b2f72f35f (diff)
Use hal-get-property instead of dmidecode to get the chassis type.
Diffstat (limited to 'pm/pm-functions.in')
-rw-r--r--pm/pm-functions.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index f7492a0..c7cd2e9 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -74,8 +74,8 @@ done
. "${PM_FUNCTIONS}"
-if [ "$(id -u)" = "0" ] && command_exists dmidecode; then
- export CHASSIS_TYPE="$(dmidecode -s chassis-type)"
+if [ "$(id -u)" = "0" ] && command_exists hal-get-property; then
+ export CHASSIS_TYPE="$(hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.chassis.type)"
else
export CHASSIS_TYPE=Unknown
fi