X-Git-Url: http://git.onelab.eu/?p=planetlab-umts-tools.git;a=blobdiff_plain;f=backend%2Fumts_backend;fp=backend%2Fumts_backend;h=29f7a53751ed1c2ddd5c0b98748a8a4d5d606a83;hp=b695763ea9c3b642d52049d3b96be0c52eb00cfe;hb=64c386dd2f9413452721c7d8f53dbad30da6f6a8;hpb=abccf94bbe664e80a0104c0cd9fd9c6cae062f16 diff --git a/backend/umts_backend b/backend/umts_backend index b695763..29f7a53 100755 --- a/backend/umts_backend +++ b/backend/umts_backend @@ -1,6 +1,6 @@ #!/bin/bash -# Vsys backend of the planetlab-umts-tools +# Vsys backend sliver=$1 @@ -25,10 +25,7 @@ case "$command" in logger "Starting the umts connection for $sliver" start_umts $sliver; - if [[ $? == 0 ]] ; then - #echo "OK" - true - else + if [[ $? != 0 ]] ; then echo "Failed" fi ;; @@ -37,17 +34,14 @@ case "$command" in logger "Stopping umts connection for $sliver" stop_umts $sliver; - if [[ $? == 0 ]] ; then - #echo "OK" - true - else + if [[ $? != 0 ]] ; then echo "Failed" fi ;; add) - logger "Request to add a destination for the umts connection"; + logger "Request to add a destination by $sliver for the umts connection"; if ! valid_dotted_quad "$rest"; then echo "Failed" @@ -63,7 +57,7 @@ case "$command" in ;; del) - logger "Request to del a destination for the umts connection"; + logger "Request to del a destination by $sliver for the umts connection"; if ! valid_dotted_quad "$rest"; then echo "Failed"