[PATCH 07/10] hal: Clean up scripts in tools
Victor Lowther
victor.lowther at gmail.com
Tue Mar 25 18:48:55 PDT 2008
hal-system-power-reboot was quoting things used in numeric comparisons.
This can result in strange failures depending on who /bin/sh and /bin/test
are. Removed the quotes.
This probably needs a more elegant fix.
---
tools/hal-system-power-reboot | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/hal-system-power-reboot b/tools/hal-system-power-reboot
index a62b1a3..81e35e9 100755
--- a/tools/hal-system-power-reboot
+++ b/tools/hal-system-power-reboot
@@ -2,7 +2,7 @@
. hal-functions
-if [ "$CK_NUM_SESSIONS" -gt "1" ] ; then
+if [ $CK_NUM_SESSIONS -gt 1 ] ; then
hal_check_priv org.freedesktop.hal.power-management.reboot-multiple-sessions
else
hal_check_priv org.freedesktop.hal.power-management.reboot
--
1.5.4.3
More information about the hal
mailing list