update scripts and makefile

This commit is contained in:
Cooper Quintin
2024-01-26 17:01:06 -08:00
parent f1f31c36ca
commit 66342307bc
4 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
cargo build
adb push target/armv7-unknown-linux-gnueabihf/debug/wavehunter /data/wavehunter/wavehunter
adb push target/armv7-unknown-linux-gnueabihf/debug/rayhunter /data/rayhunter/rayhunter
+4 -4
View File
@@ -41,9 +41,9 @@ case "$1" in
/etc/init.d/start_atfwd_daemon start
fi
if [ -f /etc/init.d/wavehunter_daemon ]
if [ -f /etc/init.d/rayhunter_daemon ]
then
/etc/init.d/wavehunter_daemon start
/etc/init.d/rayhunter_daemon start
fi
if [ -f /etc/init.d/start_stop_qti_ppp_le ]
@@ -72,9 +72,9 @@ case "$1" in
/etc/init.d/start_loc_launcher stop
fi
if [ -f /etc/init.d/wavehunter_daemon ]
if [ -f /etc/init.d/rayhunter_daemon ]
then
/etc/init.d/wavehunter_daemon stop
/etc/init.d/rayhunter_daemon stop
fi
if [ -f /etc/init.d/init_qcom_audio ]
+27
View File
@@ -0,0 +1,27 @@
#! /bin/sshell
set -e
case "$1" in
start)
echo -n "Starting rayhunter: "
start-stop-daemon -S -b --make-pidfile --pidfile /tmp/rayhunter.pid \
--startas /bin/bash -- -c "exec /data/rayhunter/rayhunter /data/rayhunter/config.toml > /data/rayhunter/rayhunter.log 2>&1"
echo "done"
;;
stop)
echo -n "Stopping rayhunter: "
start-stop-daemon -K -p /tmp/rayhunter.pid
echo "done"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage atfwd_daemon{ start | stop | restart }" >&2
exit 1
;;
esac
exit 0
-27
View File
@@ -1,27 +0,0 @@
#! /bin/sshell
set -e
case "$1" in
start)
echo -n "Starting wavehunter: "
start-stop-daemon -S -b --make-pidfile --pidfile /tmp/wavehunter.pid \
--startas /bin/bash -- -c "exec /data/wavehunter/wavehunter /data/wavehunter/config.toml > /data/wavehunter/wavehunter.log 2>&1"
echo "done"
;;
stop)
echo -n "Stopping wavehunter: "
start-stop-daemon -K -p /tmp/wavehunter.pid
echo "done"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage atfwd_daemon{ start | stop | restart }" >&2
exit 1
;;
esac
exit 0