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"
28 if [[ $? != 0 ]] ; then
34 logger "Stopping umts connection for $sliver"
37 if [[ $? != 0 ]] ; then
44 logger "Request to add a destination by $sliver for the UMTS connection";
46 if ! valid_dotted_quad "$rest"; then
49 add_destination "$rest" $sliver;
50 if [[ $? == 0 ]] ; then
60 logger "Request to del a destination by $sliver for the UMTS connection";
62 if ! valid_dotted_quad "$rest"; then
65 del_destination "$rest" $sliver;
66 if [[ $? == 0 ]] ; then
75 if status_umts $sliver; then
76 if check_who_locked $sliver; then