---
 pm/pm-functions.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index f5cc400..9a3097e 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -79,7 +79,7 @@ done
 
 . "${PM_FUNCTIONS}"
 
-if [ "$(id -u)" = "0" ] && command_exists hal-get-property; then
+if 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
-- 
1.6.0.6

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to