8 . /usr/lib/umts_functions
11 PATH=/bin:/usr/bin:/sbin:/usr/sbin
13 if [[ $sliver == "" ]]; then
14 echo "I need the first argument (the sliver name)";
20 command=`echo ${line%% *}`
21 rest=`echo ${line#* }`
25 logger "Starting the umts connection for $sliver"
29 if [[ $? != 0 ]] ; then
35 logger "Stopping umts connection for $sliver"
38 if [[ $? != 0 ]] ; then
45 logger "Request to add a destination by $sliver for the UMTS connection";
47 if ! check_sliceip; then
51 if ! valid_dotted_quad "$rest"; then
54 add_destination "$rest" $sliver;
55 if [[ $? == 0 ]] ; then
65 logger "Request to del a destination by $sliver for the UMTS connection";
67 if ! check_sliceip; then
71 if ! valid_dotted_quad "$rest"; then
74 del_destination "$rest" $sliver;
75 if [[ $? == 0 ]] ; then
84 if status_umts $sliver; then
85 if check_who_locked $sliver; then