|
|
@ -4425,7 +4425,7 @@ int CPhoneDevice::ExecuteCommand(const std::string& cmd)
|
|
|
|
void CPhoneDevice::ShutdownEthernet()
|
|
|
|
void CPhoneDevice::ShutdownEthernet()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Make Ethernet Down");
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Make Ethernet Down");
|
|
|
|
std::string cmd = "/system/xbin/su root ifconfig ";
|
|
|
|
std::string cmd = "/system/xbin/su root /system/bin/ip link set ";
|
|
|
|
cmd += m_network->iface;
|
|
|
|
cmd += m_network->iface;
|
|
|
|
cmd += " down";
|
|
|
|
cmd += " down";
|
|
|
|
int resCode = ExecuteCommand(cmd);
|
|
|
|
int resCode = ExecuteCommand(cmd);
|
|
|
|