gnome-power-manager r2756 - in trunk: . tools



Author: simonz
Date: Tue Apr  1 03:19:31 2008
New Revision: 2756
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2756&view=rev

Log:
2008-04-01  simon.zheng  <simon zheng sun com>

	* tools/gnome-power-cmd.sh:
	Only show "Failed" when D-Bus method call really fails. 



Modified:
   trunk/ChangeLog
   trunk/tools/gnome-power-cmd.sh

Modified: trunk/tools/gnome-power-cmd.sh
==============================================================================
--- trunk/tools/gnome-power-cmd.sh	(original)
+++ trunk/tools/gnome-power-cmd.sh	Tue Apr  1 03:19:31 2008
@@ -20,7 +20,7 @@
 		  --type=method_call --print-reply --reply-timeout=2000	\
 		  /org/freedesktop/PowerManagement 			\
 		  org.freedesktop.PowerManagement.$1
-	if [ $? -eq 0 ]; then
+	if [ $? -ne 0 ]; then
 		echo "Failed"
 	fi 
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]