diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2009-01-30 04:51:50 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2009-02-06 03:54:14 -0600 |
commit | 4755f6754b1a80db775676f7d485da0ee725a0c1 (patch) | |
tree | 42318cbef69c951fbe590c2fb1777083552323f4 | |
parent | 328c2016b4adf0fc04de43f79c66c1477abdae3f (diff) |
Make CHASSIS_TYPE always have Unknown if we cannot determine the chassis type.
-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 9a3097e..8ba975c 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -80,7 +80,7 @@ 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)" + 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 |