Commit 3c5bc277 authored by Mygod's avatar Mygod

Refine mount command

Fix #826.
parent 6c047eca
......@@ -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.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment