-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathraw.sh
More file actions
executable file
·48 lines (34 loc) · 879 Bytes
/
raw.sh
File metadata and controls
executable file
·48 lines (34 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#!/bin/bash
clear
RED="\e[31m"
ORANGE="\e[33m"
BLUE="\e[94m"
GREEN="\e[92m"
STOP="\e[0m"
cd /home/pi/sentinel
printf "${GREEN}"
figlet "Launching Sentinel"
figlet "RAW MODE"
IsRunning=$(ps -aux | grep -c '[p]ython sentinel' )
echo "IsRunning: ${IsRunning}"
if [[ $IsRunning -gt "1" ]]; then
echo ""
echo "-------------------------------"
echo "Sentinel is already running... "
echo "-------------------------------"
exit
fi
# Doing this manually so as not to interfere with hardline connection
sudo ifconfig wlan1 down
sudo iwconfig wlan1 mode monitor
sudo ifconfig wlan1 up
#echo "renaming old logfile"
#mv gpslog.txt "gpslog$(date +%Y%m%d_%H%M).txt"
echo "Launch Sentinel"
rm -f *.log
sudo python sentinel.py --Raw Y --Friendly Y --Routers Y
#restart LAN services
#sudo systemctl restart NetworkManager
stty sane
printf "${STOP}"