From 840f8ad8b00ca769d6a9bb6b13b8d2da0c32ba27 Mon Sep 17 00:00:00 2001 From: Cooper Quintin Date: Mon, 10 Feb 2025 11:15:40 -0800 Subject: [PATCH] stop before upload in case file is locked from writing by running process --- make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make.sh b/make.sh index 5af2e25..31400f3 100755 --- a/make.sh +++ b/make.sh @@ -1,4 +1,5 @@ #!/bin/sh cargo build --release --target="armv7-unknown-linux-gnueabihf" #--features debug +adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon stop"' adb push target/armv7-unknown-linux-gnueabihf/release/rayhunter-daemon /data/rayhunter/rayhunter-daemon -adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon restart"' +adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon start"'