diff -Nur gnome-power-manager-2.19.6/tools/gnome-power-cmd.sh gnome-power-manager-2.19.6.new/tools/gnome-power-cmd.sh --- gnome-power-manager-2.19.6/tools/gnome-power-cmd.sh 2007-07-19 01:48:02.000000000 +0200 +++ gnome-power-manager-2.19.6.new/tools/gnome-power-cmd.sh 2007-08-06 11:53:26.691908267 +0200 @@ -1,3 +1,4 @@ +#!/bin/sh # Copyright (C) 2007 Richard Hughes # # Licensed under the GNU General Public License Version 2 @@ -24,19 +25,19 @@ fi } -if [ "$1" == "suspend" ]; then +if [ "$1" = "suspend" ]; then echo "Suspending" execute_dbus_method "Suspend" -elif [ "$1" == "hibernate" ]; then +elif [ "$1" = "hibernate" ]; then echo "Hibernating" execute_dbus_method "Hibernate" -elif [ "$1" == "reboot" ]; then +elif [ "$1" = "reboot" ]; then echo "Rebooting" execute_dbus_method "Reboot" -elif [ "$1" == "shutdown" ]; then +elif [ "$1" = "shutdown" ]; then echo "Shutting down" execute_dbus_method "Shutdown" -elif [ "$1" == "" ]; then +elif [ "$1" = "" ]; then echo "command required: suspend, shutdown, hibernate or reboot" else echo "command '$1' not recognised, only suspend, shutdown, hibernate or reboot are valid"