From a7808e2ee4db5e9e6b2e4901acea33b907d0b61f Mon Sep 17 00:00:00 2001 From: eFini Date: Thu, 29 Feb 2024 16:33:17 +0800 Subject: [PATCH] Update eon_installer.sh --- scripts/eon_installer.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/eon_installer.sh b/scripts/eon_installer.sh index 73a325726..d5e45260f 100644 --- a/scripts/eon_installer.sh +++ b/scripts/eon_installer.sh @@ -1,11 +1,13 @@ #!/usr/bin/bash -rm -fr /data/openpilot -cd /data/ && git clone https://github.com/dragonpilot-community/dragonpilot -b $1 --single-branch --depth 1 openpilot +rm -fr /data/openpilot ; +cd /data/ && -touch /data/data/com.termux/files/continue.sh -echo "#!/usr/bin/bash" > /data/data/com.termux/files/continue.sh -echo "cd /data/openpilot" >> /data/data/com.termux/files/continue.sh -echo "exec ./launch_openpilot.sh" >> /data/data/com.termux/files/continue.sh +git clone https://github.com/dragonpilot-community/dragonpilot -b $1 --single-branch -depth=1 openpilot && -chmod u+x /data/data/com.termux/files/continue.sh +touch /data/data/com.termux/files/continue.sh && +echo "#!/usr/bin/bash" >> /data/data/com.termux/files/continue.sh && +echo "cd /data/openpilot" >> /data/data/com.termux/files/continue.sh && +echo "exec ./launch_openpilot.sh" >> /data/data/com.termux/files/continue.sh && + +chmod u+x /data/data/com.termux/files/continue.sh && reboot