换一种命令

lowmem
Matthew 1 month ago
parent 67479e0acc
commit eb5af62ad3

@ -4425,7 +4425,7 @@ int CPhoneDevice::ExecuteCommand(const std::string& cmd)
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 /system/bin/ip link set ";
cmd += m_network->iface;
cmd += " down";
int resCode = ExecuteCommand(cmd);

Loading…
Cancel
Save