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;
;;
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 [[ $? == 0 ]] ; then
+ if [[ $? != 0 ]] ; then
echo "OK"
else
echo "Failed"
;;
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"