From 3c5bc27750c879c601c4d122a871bad8ac336ad9 Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 22 Aug 2016 21:03:53 +0800 Subject: [PATCH] Refine mount command Fix #826. --- src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala b/src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala index 687e3935..5ebe04e6 100644 --- a/src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala +++ b/src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala @@ -33,11 +33,11 @@ object TcpFastOpen { Shell.run("su", Array( "if " + fastopen + "; then", " success=-1", - " if mount -o remount,rw /system; then", + " if mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system; then", " echo '#!/system/bin/sh", fastopen + "' > /etc/init.d/tcp_fastopen && chmod 755 /etc/init.d/tcp_fastopen", " success=$?", - " mount -o remount,ro /system", + " mount -o ro,remount /dev/block/platform/msm_sdcc.1/by-name/system /system", " fi", " if [ $success -eq 0 ]; then", " echo Success.",