From eb5af62ad32b22834a2a1d8bc92be0235acf96ae Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 11 May 2025 10:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E4=B8=80=E7=A7=8D=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 35575ecd..03d86dc4 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -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);