git://git.onelab.eu
/
planetlab-umts-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some fixes and files moved
[planetlab-umts-tools.git]
/
umts_backend
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
(executable)
--- a/
backend/umts_backend
+++ b/
umts_backend
@@
-21,6
+21,15
@@
command=`echo ${line%% *}`
rest=`echo ${line#* }`
case "$command" in
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;
start)
logger "Starting the umts connection for $sliver"
start_umts $sliver;
@@
-41,13
+50,13
@@
case "$command" in
;;
add)
;;
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 ! valid_dotted_quad "$rest"; then
echo "Failed"
else
add_destination "$rest" $sliver;
- if [[ $?
=
= 0 ]] ; then
+ if [[ $?
!
= 0 ]] ; then
echo "OK"
else
echo "Failed"
echo "OK"
else
echo "Failed"
@@
-57,7
+66,7
@@
case "$command" in
;;
del)
;;
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"
if ! valid_dotted_quad "$rest"; then
echo "Failed"