Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 2 Apr 2010 18:50:14 +0000 (20:50 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 2 Apr 2010 18:50:14 +0000 (20:50 +0200)
hotspot.sh

index 1cd5a22..f979c11 100755 (executable)
@@ -70,6 +70,7 @@ function sigint-handler () {
 }
 
 function scan () {
+    echo "  Scanning ..."
     iwconfig ${INTERFACE} ap off essid ""
     iwlist ${INTERFACE} scan | \
         sed -e "s/^[\t ]*//"  | grep ^"Cell\|ESSID\|Quality\|Encryption" | \
@@ -210,14 +211,12 @@ function process-key () {
             ;;
 
         r|s) # re-scanning the access points
-            echo "Scanning ..."
             scan
             redisplay
             ;;
 
         m) # Switching the mode to show the protected spots
             SHOW_CLOSED=$((1-SHOW_CLOSED))
-            echo "Scanning ..."
             scan
             redisplay
             ;;
@@ -239,7 +238,7 @@ function process-key () {
             ;;
 
         "esc-esc"|q)
-            echo "quit"
+            echo "  Quit."
             cont=0
             ;;