X-Git-Url: http://git.onelab.eu/?p=planetlab-umts-tools.git;a=blobdiff_plain;f=umts_backend;fp=backend%2Fumts_backend;h=8d1dae1e35f698d5525d9ef955ae2b8cd117b0d5;hp=2a4960aa3647ef1741ae4a6e92e1a34038032c99;hb=29a8ad81f201bb3c538057dd174c31c9ae551e78;hpb=46cf404603955fa122ad50cfe9a72b82491f9b4d diff --git a/backend/umts_backend b/umts_backend similarity index 78% rename from backend/umts_backend rename to umts_backend index 2a4960a..8d1dae1 100755 --- a/backend/umts_backend +++ b/umts_backend @@ -21,6 +21,15 @@ command=`echo ${line%% *}` rest=`echo ${line#* }` case "$command" in + #init) + #logger "Initialitation of the UMTS inteface requested by $sliver" + #init_umts $sliver; + # + #if [[ $? != 0 ]] ; then + # echo "Failed" + #fi + #;; + start) logger "Starting the umts connection for $sliver" start_umts $sliver; @@ -41,13 +50,13 @@ case "$command" in ;; add) - logger "Request to add a destination by $sliver for the umts connection"; + logger "Request to add a destination by $sliver for the UMTS connection"; if ! valid_dotted_quad "$rest"; then echo "Failed" else add_destination "$rest" $sliver; - if [[ $? == 0 ]] ; then + if [[ $? != 0 ]] ; then echo "OK" else echo "Failed" @@ -57,7 +66,7 @@ case "$command" in ;; del) - logger "Request to del a destination by $sliver for the umts connection"; + logger "Request to del a destination by $sliver for the UMTS connection"; if ! valid_dotted_quad "$rest"; then echo "Failed"