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

[tor-commits] [stegotorus/master] changing default log level to be able to see process ID of stegotorus server|client



commit e19c5bd0bd1f0092e5dbce986f4db33700ecf5f6
Author: Linda Briesemeister <linda.briesemeister@xxxxxxx>
Date:   Mon Jan 9 15:17:36 2012 +0000

    changing default log level to be able to see process ID of stegotorus server|client
    
    git-svn-id: svn+ssh://spartan.csl.sri.com/svn/private/DEFIANCE@206 a58ff0ac-194c-e011-a152-003048836090
---
 scripts/start-stegotorus.sh |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/scripts/start-stegotorus.sh b/scripts/start-stegotorus.sh
index 01129ab..69be986 100644
--- a/scripts/start-stegotorus.sh
+++ b/scripts/start-stegotorus.sh
@@ -1,6 +1,15 @@
 #!/bin/bash
 
 ################################################################################
+# variables with default values
+declare IP=127.0.0.1
+declare -i PORT=8080
+declare -i N=1
+declare LOG=info
+declare BRIDGE_IP=87.73.82.145
+declare -i BRIDGE_PORT=8080
+
+################################################################################
 # helper functions:
 
 usage () {
@@ -15,13 +24,13 @@ Start StegoTorus server or client from given installation directory with given o
 
 OPTIONS:
    -h             Show this message
-   -i <addr>      IP address (default: 127.0.0.1)
-   -p <n>         port number (default: 8080)
-   -l <severity>  Log severity: warn, error, debug (default: error)
+   -i <addr>      IP address (default: ${IP})
+   -p <n>         port number (default: ${PORT})
+   -l <severity>  Log severity: warn, error, info, debug (default: ${LOG})
    -b <host>      Host name (or IP address) of Tor Bridge
                   with port number attached via ':' or omitted
-                  (default: 87.73.82.145:8080)
-   -n <n>         Multiply the number of IP addresses on the client
+                  (default: ${BRIDGE_IP}:${BRIDGE_PORT})
+   -n <n>         Multiply the number of IP addresses on the client (default: ${N})
 EOF
 }
 
@@ -29,12 +38,6 @@ EOF
 # parse command line:
 
 # default values:
-IP=127.0.0.1
-PORT=8080
-N=1
-LOG=error
-BRIDGE_IP=87.73.82.145
-BRIDGE_PORT=8080
 while getopts "hi:p:l:b:n:" OPTION
 do
     case $OPTION in



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits