some fixes and files moved
[planetlab-umts-tools.git] / umts_backend
similarity index 78%
rename from backend/umts_backend
rename to umts_backend
index 2a4960a..8d1dae1 100755 (executable)
@@ -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"