summaryrefslogtreecommitdiff
path: root/pm/pm-functions.in
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2009-11-25 12:35:28 +0100
committerMichael Biebl <mbiebl@gmail.com>2009-11-30 17:18:06 +0100
commitc7df9ec51d914ff06007414651c89750dbdb3745 (patch)
treeed4b0c573c9c36414e0c86fd79d996f361e4f892 /pm/pm-functions.in
parent7cf2894a69cb5627fd9949bf065cb1c631b84bc5 (diff)
pm-functions.in: Drop $CHASSIS_TYPE
$CHASSIS_TYPE is not used anywhere in pm-utils itself, nor any third-party pm-utils hook that I can see. It relies on a dmidecode map in hal which has never really been robust, and it just seems generally obsolete nowadays. Let's not proliferate that any further and just remove it entirely. https://bugs.freedesktop.org/show_bug.cgi?id=25274
Diffstat (limited to 'pm/pm-functions.in')
-rw-r--r--pm/pm-functions.in6
1 files changed, 0 insertions, 6 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index 67910ea..4be0f28 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -79,12 +79,6 @@ done
. "${PM_FUNCTIONS}"
-if command_exists hal-get-property; then
- export CHASSIS_TYPE="$(hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.chassis.type 2>/dev/null || echo Unknown)"
-else
- export CHASSIS_TYPE=Unknown
-fi
-
# Simple little logging function.
# We do it this way because 'echo -n' is not posix.
log()