mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-03 23:33:36 -07:00
update scripts and makefile
This commit is contained in:
@@ -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
@@ -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 ]
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user