diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-12-14 15:46:39 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-12-14 15:46:39 -0600 |
commit | e3c0135899e8f1b9c27333d4641dabf9c1a562cf (patch) | |
tree | fae1f12c52a379da70b22fb9973fe6149b0f33dd | |
parent | 2c89b8f30b1d28ad98d17783ec6c75e27c5b7514 (diff) |
hal-get-porperty runs just fine as a normal user
-rw-r--r-- | 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 |