network-manager-applet r493 - branches/network-manager-applet-0-6



Author: tambeti
Date: Wed Jan 30 21:33:37 2008
New Revision: 493
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=493&view=rev

Log:
2008-01-30  Tambet Ingo  <tambet gmail com>

	* nm-disconnect-wireless-on-exit.sh: Forgot to commit this yesterday.



Added:
   branches/network-manager-applet-0-6/nm-disconnect-wireless-on-exit.sh

Added: branches/network-manager-applet-0-6/nm-disconnect-wireless-on-exit.sh
==============================================================================
--- (empty file)
+++ branches/network-manager-applet-0-6/nm-disconnect-wireless-on-exit.sh	Wed Jan 30 21:33:37 2008
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+GCONF_TOOL=/usr/bin/gconftool-2
+GCONF_PATH=/apps/NetworkManagerApplet/disconnect_wireless_on_exit
+
+if test "x$1" == "x"; then
+	echo -n "Current value is: "
+	$GCONF_TOOL --get $GCONF_PATH
+	exit 0
+fi
+
+if test $1 == "true" || test $1 == "yes"; then
+	echo "Setting to true"
+	$GCONF_TOOL --set $GCONF_PATH --type=bool true
+	exit 0
+fi
+
+if test $1 == "false" || test $1 == "no"; then
+	echo "Setting to false"
+	$GCONF_TOOL --set $GCONF_PATH --type=bool false
+	exit 0
+fi
+
+echo "Usage: $0 [true|false]"
+exit 1



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