small change in doc; some files renamed: umts_backend -> umtsd
[planetlab-umts-tools.git] / umts_backend
diff --git a/umts_backend b/umts_backend
deleted file mode 100755 (executable)
index 8d1dae1..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/bash
-
-# Vsys backend
-
-
-sliver=$1
-
-. /usr/lib/umts_functions
-
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin 
-
-if [[ $sliver == "" ]]; then
-       echo "I need the first argument (the sliver name)";
-       exit 1
-fi
-
-read line
-
-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;
-       
-       if [[ $? != 0 ]] ; then
-               echo "Failed"
-       fi
-    ;;
-
-    stop)
-       logger "Stopping umts connection for $sliver"
-       stop_umts $sliver;
-
-       if [[ $? != 0 ]] ; then
-               echo "Failed"
-       fi
-
-    ;;
-
-    add)
-       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
-                       echo "OK"
-               else
-                       echo "Failed"
-               fi
-       fi
-
-       ;;      
-
-    del)
-       logger "Request to del a destination by $sliver for the UMTS connection";
-       
-       if ! valid_dotted_quad "$rest"; then
-               echo "Failed"
-       else
-               del_destination "$rest" $sliver;
-               if [[ $? == 0 ]] ; then
-                       echo "OK"
-               else
-                       echo "Failed"
-               fi
-       fi
-       ;;
-    status)
-       if  status_umts $sliver; then
-               if check_who_locked $sliver; then
-                       echo "Connected"
-               fi
-       else 
-               echo "Disconnected"
-       fi
-       ;;
-
-    *)
-       echo "Wrong command"
-    ;;
-
-esac
-
-
-#sleep 1
-echo "EOF"
-
-
-exit 0
-