blob: ae69f31dd068519ae306f6b629035ef27a77263c [file] [log] [blame]
#!/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 "Set sms center address"
if [ "$1" == "-h" ]
then
echo -E "SetSMSCenterAddress <SMS Center Number>"
exit 0
fi
if [ "$1" == "" ]
then
echo -E "Address is invaild!"
exit 1
fi
echo -E "Set SMS Center Address $1."
#open a socket, communicated with Service.
exec 9<> /dev/udp/127.0.0.1/8000
#send Terminal response CMD
echo "RIL_REQUEST_SET_SMSC_ADDRESS $1 " >&9
#close socket R/W
exec 9>&-
exec 9<&-
exit 0