forked from davy12315/adsb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
66 lines (59 loc) · 1.57 KB
/
setup.sh
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
clear
echo " "
echo "Setup VariFlight ADS-B Client..."
echo "You will first need a working version of any feeder before proceeding."
echo "Example FlightAware or any pre-build ADS-B image already installed."
echo "Else setup for VariFlight feeder will fail!"
echo "This setup script just borrow the existing feeder Dump1090 decoder to function."
echo " "
apt-get install dos2unix -y
cd /root
chmod +x *.sh
dos2unix *.*
cd get_message
chmod +x *.sh
chmod +x *.py
dos2unix *.*
python get_ip.py
ps aux | grep py
update-alternatives --config editor
crontab -l > mycron
#echo new cron into cron file
echo "* * * * * /root/task.sh >/dev/null 2>&1" >> mycron
echo "* * * * * /root/synctime.sh >/dev/null 2>&1" >> mycron
#install new cron file
crontab mycron
rm mycron
crontab -e
clear
echo " "
echo " "
echo "UUID : "
cat /root/get_message/UUID
sleep 20
echo " "
echo " "
bash /root/get_message/init.sh
bash /root/task.sh
clear
echo " "
echo " "
echo "Standy by 1 minute to reboot and activation..."
echo "Please copy down the UUID code together with your"
echo "nearest airport Name / ICAO code to mailto:[email protected]"
echo "And please register online at http://flightadsb.variflight.com"
echo "for new account membership creation."
echo " "
echo "If you are using WiFi please modify {nano /root/get_message/get_ip.py}"
echo "Change the value to "eth0" to "wlan0" at the end of the script"
echo "e.g. {eth=get_ip_address('eth0')}"
echo " "
echo " "
echo "Thank you."
echo "VariFlight Team "
echo " "
echo " "
echo " "
echo " "
echo "Engineered by Rodney Yeo @ http://rodyeo.dyndns.org/"