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
Add support for the Huawei e620 umts card
[planetlab-umts-tools.git]
/
backend
/
umts_backend
diff --git
a/backend/umts_backend
b/backend/umts_backend
index
b695763
..
29f7a53
100755
(executable)
--- a/
backend/umts_backend
+++ b/
backend/umts_backend
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-# Vsys backend
of the planetlab-umts-tools
+# Vsys backend
sliver=$1
sliver=$1
@@
-25,10
+25,7
@@
case "$command" in
logger "Starting the umts connection for $sliver"
start_umts $sliver;
logger "Starting the umts connection for $sliver"
start_umts $sliver;
- if [[ $? == 0 ]] ; then
- #echo "OK"
- true
- else
+ if [[ $? != 0 ]] ; then
echo "Failed"
fi
;;
echo "Failed"
fi
;;
@@
-37,17
+34,14
@@
case "$command" in
logger "Stopping umts connection for $sliver"
stop_umts $sliver;
logger "Stopping umts connection for $sliver"
stop_umts $sliver;
- if [[ $? == 0 ]] ; then
- #echo "OK"
- true
- else
+ if [[ $? != 0 ]] ; then
echo "Failed"
fi
;;
add)
echo "Failed"
fi
;;
add)
- logger "Request to add a destination
for the umts connection";
+ logger "Request to add a destination
by $sliver for the umts connection";
if ! valid_dotted_quad "$rest"; then
echo "Failed"
if ! valid_dotted_quad "$rest"; then
echo "Failed"
@@
-63,7
+57,7
@@
case "$command" in
;;
del)
;;
del)
- logger "Request to del a destination 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"