summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-01-28 22:53:28 +0000
committerRichard Hughes <richard@hughsie.com>2008-01-28 22:53:28 +0000
commitea744ea29552cb068bf3c05ecf80d2a8d336848b (patch)
treedc86075fb460e4ed3e370f9dc4126849f71140a6 /src
parentdba53342fd80a01f8d932b8d32a0057562128ab7 (diff)
This patch modifies the module
unload/reload code to be POSIX compliant, and includes a minor quotation fix in on_ac_power.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/on_ac_power4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/on_ac_power b/src/on_ac_power
index a250e56..6f6a3d0 100755
--- a/src/on_ac_power
+++ b/src/on_ac_power
@@ -39,8 +39,8 @@ ac_adapters=$(hal-find-by-capability --capability ac_adapter)
# If any of them are online, then we're done.
for device in $ac_adapters ; do
- present=$(hal-get-property --udi $device --key ac_adapter.present)
- [ "$present" == "true" ] && exit 0
+ present=$(hal-get-property --udi "$device" --key ac_adapter.present)
+ [ "x$present" = "xtrue" ] && exit 0
done
# If there are adapters, but none are online, we're not on AC.