|
|
@ -4421,10 +4421,13 @@ int CPhoneDevice::ExecuteCommand(const std::string& cmd)
|
|
|
|
|
|
|
|
|
|
|
|
void CPhoneDevice::ShutdownEthernet()
|
|
|
|
void CPhoneDevice::ShutdownEthernet()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Make Ethernet Down");
|
|
|
|
std::string cmd = "/system/xbin/su root ifconfig ";
|
|
|
|
std::string cmd = "/system/xbin/su root ifconfig ";
|
|
|
|
cmd += m_network->iface;
|
|
|
|
cmd += m_network->iface;
|
|
|
|
cmd += " down";
|
|
|
|
cmd += " down";
|
|
|
|
ExecuteCommand(cmd);
|
|
|
|
int resCode = ExecuteCommand(cmd);
|
|
|
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet is Down %d", resCode);
|
|
|
|
|
|
|
|
|
|
|
|
// const char* args[] = {"root", "ifconfig", m_network->iface.c_str(), "down", NULL};
|
|
|
|
// const char* args[] = {"root", "ifconfig", m_network->iface.c_str(), "down", NULL};
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#if 0
|
|
|
|