hal: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Mon Mar 5 18:00:24 PST 2007


 tools/hal-system-power-hibernate      |    2 +-
 tools/hal-system-power-reboot         |    2 +-
 tools/hal-system-power-set-power-save |    2 +-
 tools/hal-system-power-shutdown       |    2 +-
 tools/hal-system-power-suspend        |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

New commits:
diff-tree f21d765994e4db15e43d339fa8c7d7d0e6e36c12 (from 0bdf05e77d4551d4a52d6f6753d0d62d6fe5f740)
Author: Dan Nicholson <dbn.lists at gmail.com>
Date:   Mon Mar 5 12:46:25 2007 -0800

    POSIX shells do not support '==' tests
    
    Some of the scripts in tools are using '==' for string tests but
    have #!/bin/sh for the shebang. This is alright for bash, but it's
    not part of the POSIX spec for shells.

diff --git a/tools/hal-system-power-hibernate b/tools/hal-system-power-hibernate
index ab8ce9d..ffdd330 100755
--- a/tools/hal-system-power-hibernate
+++ b/tools/hal-system-power-hibernate
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 PRIVILEGE=hal-power-hibernate
-if [ "$HAVE_POLKIT" == "1" ] ; then
+if [ "$HAVE_POLKIT" = "1" ] ; then
     if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
 	RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
 	    --user $HAL_METHOD_INVOKED_BY_UID \
diff --git a/tools/hal-system-power-reboot b/tools/hal-system-power-reboot
index dec4b0b..1c93aac 100755
--- a/tools/hal-system-power-reboot
+++ b/tools/hal-system-power-reboot
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 PRIVILEGE=hal-power-reboot
-if [ "$HAVE_POLKIT" == "1" ] ; then
+if [ "$HAVE_POLKIT" = "1" ] ; then
     if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
 	RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
 	    --user $HAL_METHOD_INVOKED_BY_UID \
diff --git a/tools/hal-system-power-set-power-save b/tools/hal-system-power-set-power-save
index c933d77..a7bd972 100755
--- a/tools/hal-system-power-set-power-save
+++ b/tools/hal-system-power-set-power-save
@@ -4,7 +4,7 @@ read value
 
 if [ -n "$HALD_UNAME_S" -a -x ./$HALD_UNAME_S/hal-system-power-set-power-save-$HALD_UNAME_S ]; then
     ./$HALD_UNAME_S/hal-system-power-set-power-save-$HALD_UNAME_S $value
-    if [ "x$?" == "x0" ]; then
+    if [ "x$?" = "x0" ]; then
         hal-set-property --udi $HAL_PROP_INFO_UDI \
         --key "power_management.is_powersave_set" --bool "$value"
     fi
diff --git a/tools/hal-system-power-shutdown b/tools/hal-system-power-shutdown
index 33a3226..df3d14a 100755
--- a/tools/hal-system-power-shutdown
+++ b/tools/hal-system-power-shutdown
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 PRIVILEGE=hal-power-poweroff
-if [ "$HAVE_POLKIT" == "1" ] ; then
+if [ "$HAVE_POLKIT" = "1" ] ; then
     if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
 	RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
 	    --user $HAL_METHOD_INVOKED_BY_UID \
diff --git a/tools/hal-system-power-suspend b/tools/hal-system-power-suspend
index 8199689..bd698b7 100755
--- a/tools/hal-system-power-suspend
+++ b/tools/hal-system-power-suspend
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 PRIVILEGE=hal-power-suspend
-if [ "$HAVE_POLKIT" == "1" ] ; then
+if [ "$HAVE_POLKIT" = "1" ] ; then
     if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
 	RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
 	    --user $HAL_METHOD_INVOKED_BY_UID \


More information about the hal-commit mailing list