[Pm-utils] [PATCH 3/7] (pm-utils 1.2.4) hal-get-property runs just fine as a normal user

Victor Lowther victor.lowther at gmail.com
Thu Jan 29 05:51:58 PST 2009


---
 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



More information about the Pm-utils mailing list