Setting tag planetlab-umts-tools-0.6-5
[planetlab-umts-tools.git] / umtsd
diff --git a/umtsd b/umtsd
index 8d1dae1..a97bf57 100755 (executable)
--- a/umtsd
+++ b/umtsd
@@ -21,15 +21,6 @@ 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;
@@ -56,7 +47,7 @@ case "$command" in
                echo "Failed"
        else
                add_destination "$rest" $sliver;
-               if [[ $? != 0 ]] ; then
+               if [[ $? == 0 ]] ; then
                        echo "OK"
                else
                        echo "Failed"
@@ -97,7 +88,7 @@ case "$command" in
 esac
 
 
-#sleep 1
+sleep 1
 echo "EOF"