stop before upload in case file is locked from writing by running process

This commit is contained in:
Cooper Quintin
2025-02-10 11:15:40 -08:00
committed by Will Greenberg
parent c9ac834ca7
commit 840f8ad8b0

View File

@@ -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"'