| #!/bin/bash |
| #Copyright (c) 2016, MediaTek Inc. All rights reserved. |
| #This software/firmware and related documentation ("MediaTek Software") are protected under relevant copyright laws. |
| #The information contained herein is confidential and proprietary to MediaTek Inc. and/or its licensors. |
| #Except as otherwise provided in the applicable licensing terms with MediaTek Inc. and/or its licensors, any reproduction, |
| #modification, use or disclosure of MediaTek Software, and information contained herein, in whole or in part, shall be strictly prohibited. |
| |
| echo "make fast ecall" |
| if [ $# -lt 4 ] |
| then |
| echo "paramter is invaild!" |
| exit 1 |
| fi |
| |
| ecall_cat="$1" |
| ecall_variant="$2" |
| address="$3" |
| msd_data="$4" |
| |
| #open a socket, communicated with Service. |
| exec 9<> /dev/udp/127.0.0.1/8000 |
| |
| #make ecall CMD |
| echo "RIL_REQUEST_ECALL_FAST_MAKE_ECALL ${ecall_cat} ${ecall_variant} ${address} ${msd_data}" >&9 |
| |
| #close socket R/W |
| exec 9>&- |
| exec 9<&- |
| exit 0 |