[PATCH 1/1] examples: bash: print errors int stderr

2015-03-18 Thread Petr Vorel
+ whitespace

Signed-off-by: Petr Vorel petr.vo...@gmail.com
---
 examples/shell/active-wifi.sh   | 2 +-
 examples/shell/disconnect-device.sh | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/shell/active-wifi.sh b/examples/shell/active-wifi.sh
index 1c9466b..2ff5419 100755
--- a/examples/shell/active-wifi.sh
+++ b/examples/shell/active-wifi.sh
@@ -76,7 +76,7 @@ show_active_ssids()
 BSSID=`get_property $ACTIVE_AP $ACCESS_POINT_IFACE HwAddress`
 echo Device '$INTERFACE' is connected to '$SSID' (BSSID=$BSSID)
   else
-echo No active AP on device '$INTERFACE'
+echo No active AP on device '$INTERFACE' 2
   fi
 fi
   done
diff --git a/examples/shell/disconnect-device.sh 
b/examples/shell/disconnect-device.sh
index 045d64d..e8af42f 100755
--- a/examples/shell/disconnect-device.sh
+++ b/examples/shell/disconnect-device.sh
@@ -61,7 +61,7 @@ disconnect_device ()
 fi
   done
 
-  echo Device with interface '$1' not found.
+  echo Device with interface '$1' not found. 2
   return 1
 }
 
@@ -70,7 +70,7 @@ disconnect_device ()
 if [ ! -n $1 ]; then
   echo Usage: `basename $0` interface name
   exit 2
-fi 
+fi
 
 # disconnect device
 disconnect_device $1
-- 
2.1.4

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH 1/1] examples: bash: print errors int stderr

2015-03-18 Thread Dan Williams
On Wed, 2015-03-18 at 20:37 +0100, Petr Vorel wrote:
 + whitespace
 
 Signed-off-by: Petr Vorel petr.vo...@gmail.com

Thanks!  Pushed to git master and nm-1-0.

Dan

 ---
  examples/shell/active-wifi.sh   | 2 +-
  examples/shell/disconnect-device.sh | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/examples/shell/active-wifi.sh b/examples/shell/active-wifi.sh
 index 1c9466b..2ff5419 100755
 --- a/examples/shell/active-wifi.sh
 +++ b/examples/shell/active-wifi.sh
 @@ -76,7 +76,7 @@ show_active_ssids()
  BSSID=`get_property $ACTIVE_AP $ACCESS_POINT_IFACE HwAddress`
  echo Device '$INTERFACE' is connected to '$SSID' (BSSID=$BSSID)
else
 -echo No active AP on device '$INTERFACE'
 +echo No active AP on device '$INTERFACE' 2
fi
  fi
done
 diff --git a/examples/shell/disconnect-device.sh 
 b/examples/shell/disconnect-device.sh
 index 045d64d..e8af42f 100755
 --- a/examples/shell/disconnect-device.sh
 +++ b/examples/shell/disconnect-device.sh
 @@ -61,7 +61,7 @@ disconnect_device ()
  fi
done
  
 -  echo Device with interface '$1' not found.
 +  echo Device with interface '$1' not found. 2
return 1
  }
  
 @@ -70,7 +70,7 @@ disconnect_device ()
  if [ ! -n $1 ]; then
echo Usage: `basename $0` interface name
exit 2
 -fi 
 +fi
  
  # disconnect device
  disconnect_device $1


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list