From 6f20e049f2fee06b6db4d034a2b4eedc90e7ab05 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 25 Nov 2009 12:35:28 +0100 Subject: [PATCH 4/4] 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 --- pm/pm-functions.in | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/pm/pm-functions.in b/pm/pm-functions.in index 4c8bc7b..b8f7746 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() -- 1.6.5