slitaz-tools diff tinyutils/wifibox @ rev 340

tazx: Moved doc to Handbook
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 04 23:12:18 2009 +0200 (2009-05-04)
parents c32ad66d6096
children afbb699cfd0f
line diff
     1.1 --- a/tinyutils/wifibox	Wed Mar 04 09:53:05 2009 +0000
     1.2 +++ b/tinyutils/wifibox	Mon May 04 23:12:18 2009 +0200
     1.3 @@ -1,14 +1,14 @@
     1.4  #!/bin/sh
     1.5  #
     1.6 -# GTKdialog interface to manage wireless connection in a simple way.
     1.7 +# GTKdialog interface to manage wireless connections in a simple way.
     1.8  # Use tabs to indent, split commands from the GUI and use functions.
     1.9 -# Favotites networks are also supported
    1.10 +# Favorite networks are also supported
    1.11  #
    1.12  # (c) 2009 SliTaz GNU/Linux - GNU gpl v3
    1.13  #
    1.14  VERSION=20090222
    1.15  
    1.16 -# Export script path and other if needed so we can use them in 'quote'.
    1.17 +# Export script path and others if needed so we can use them in 'quote'.
    1.18  export BIN=$0
    1.19  export FAVORITES_WIFI=/etc/wireless
    1.20  . /etc/network.conf
    1.21 @@ -24,8 +24,8 @@
    1.22  [ -d $FAVORITES_WIFI ] || mkdir -p $FAVORITES_WIFI
    1.23  rm -f $FAVORITES_WIFI/any.conf
    1.24  
    1.25 -# Catch ESSIDs and format output for GTK tree. We get the list off 
    1.26 -# network by Cell and without space.
    1.27 +# Catch ESSIDs and format output for GTK tree. We get the list of
    1.28 +# networks by Cell and without spaces.
    1.29  detect_wifi_networks()
    1.30  {
    1.31  	desktopbox notify "Scanning Wireless interface: $WIFI_INTERFACE" &
    1.32 @@ -69,10 +69,10 @@
    1.33  	done
    1.34  }
    1.35  
    1.36 -# Configure /etc/network.conf and restart connexion with init script.
    1.37 +# Configure /etc/network.conf and restart connection with init script.
    1.38  start_wifi_connection()
    1.39  {
    1.40 -	# Get tmp config created by connect_to_essid() if exist and set 
    1.41 +	# Get tmp config created by connect_to_essid() if exists and set 
    1.42  	# empty value to clean config file.
    1.43  	if [ -f /tmp/wifi.conf ]; then
    1.44  		. /tmp/wifi.conf
    1.45 @@ -101,11 +101,11 @@
    1.46  	set_rfswitch 1 
    1.47  	iwconfig $WIFI_INTERFACE txpower auto	
    1.48  	/etc/init.d/network.sh restart
    1.49 -	# Remove tmp file (could be use to have wireless profiles)
    1.50 +	# Remove tmp file (could be used to have wireless profiles)
    1.51  	rm -f /tmp/wifi.conf
    1.52  }
    1.53  
    1.54 -# We must spleep 4 sec to refresh networks list.
    1.55 +# We must sleep 4 sec to refresh networks list.
    1.56  stop_wifi_connexion()
    1.57  {
    1.58  	sed -i s/`grep ^WIFI= /etc/network.conf`/WIFI=\"no\"/ \
    1.59 @@ -118,7 +118,7 @@
    1.60  	sleep 4
    1.61  }
    1.62  
    1.63 -# Favorites wireless networks use only 3 values: essid. key and type of
    1.64 +# Favorite wireless networks use only 3 values: essid. key and type of
    1.65  # key
    1.66  FAVORITES_WIFI_list()
    1.67  {
    1.68 @@ -290,7 +290,7 @@
    1.69  \"
    1.70  		</label>
    1.71  	</text>"
    1.72 -	# We mybe need a key to connect
    1.73 +	# We maybe need a key to connect
    1.74  	if [ "$ENCRYPTION" = "on" ] && [ "$ESSID_LIST" != "any" ]; then
    1.75  		# WPA
    1.76  		if echo "$SCAN" | grep -q WPA; then
    1.77 @@ -380,7 +380,7 @@
    1.78  		</hbox>
    1.79  	</vbox>"
    1.80  	
    1.81 -	# Favorites networks
    1.82 +	# Favorite networks
    1.83  	WIFI_DIALOG=${WIFI_DIALOG}"	
    1.84  	<vbox>
    1.85  		<tree icon=\"network-wireless\">