fix
[planetlab-umts-tools.git] / umtsd
diff --git a/umtsd b/umtsd
index 8d1dae1..780fb56 100755 (executable)
--- a/umtsd
+++ b/umtsd
@@ -56,7 +56,7 @@ case "$command" in
                echo "Failed"
        else
                add_destination "$rest" $sliver;
                echo "Failed"
        else
                add_destination "$rest" $sliver;
-               if [[ $? != 0 ]] ; then
+               if [[ $? == 0 ]] ; then
                        echo "OK"
                else
                        echo "Failed"
                        echo "OK"
                else
                        echo "Failed"