You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-6
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,7 @@ Running the following commands will download the contents of this repository and
14
14
15
15
**After completing the setup do not delete this repository.**
16
16
17
-
The script(s) create two files, one named adsbexchange-mlat_maint.sh and another named adsbexchange-netcat_maint.sh which will reside in this folder containing a clone of this repository. The path to execute these scripts after each reboot has been set to this location. Deleting this folder will result in both the adsbexchange-mlat_maint.sh and adsbexchange-netcat_maint.sh scripts to not be executed thus not enabling your receiver to feed ADS-B Exchange after your device has been rebooted.
18
-
19
-
**no_dialogs.sh**
20
-
21
-
The file "no_dialogs.sh" can used in place of "setup.sh" to set up your receiver.
22
-
The only difference between the two files is "no_dialogs.sh" does not use Whiptail dialogs.
17
+
The script creates two files, one named adsbexchange-mlat_maint.sh and another named adsbexchange-netcat_maint.sh which will reside in this folder containing a clone of this repository. The path to execute these scripts after each reboot has been set to this location. Deleting this folder will result in both the adsbexchange-mlat_maint.sh and adsbexchange-netcat_maint.sh scripts to not be executed thus not enabling your receiver to feed ADS-B Exchange after your device has been rebooted.
Copy file name to clipboardexpand all lines: setup.sh
+113-46
Original file line number
Diff line number
Diff line change
@@ -30,116 +30,170 @@
30
30
31
31
## CHECK IF SCRIPT WAS RAN USING SUDO
32
32
33
-
34
33
if [ "$(id -u)"!="0" ];then
34
+
echo -e "\033[33m"
35
35
echo"This script must be ran using sudo or as root."
36
+
echo -e "\033[37m"
36
37
exit 1
37
38
fi
38
39
39
-
40
40
## ASSIGN VARIABLES
41
41
42
-
42
+
LOGDIRECTORY="$PWD/logs"
43
43
MLATCLIENTVERSION="0.2.6"
44
44
MLATCLIENTTAG="v0.2.6"
45
45
46
-
47
46
## WHIPTAIL DIALOGS
48
47
49
-
50
48
BACKTITLETEXT="ADS-B Exchange Setup Script"
51
49
52
-
whiptail --backtitle "$BACKTITLETEXT" --title "" --yesno "Thanks for choosing to share your data with ADS-B Exchange!\n\nADSBexchange.com is a co-op of ADS-B/Mode S/MLAT feeders from around the world. This script will configure your current your ADS-B receiver to share your feeders data with ADS-B Exchange.\n\nWould you like to continue setup?"8 78
50
+
whiptail --backtitle "$BACKTITLETEXT" --title "$BACKTITLETEXT" --yesno "Thanks for choosing to share your data with ADS-B Exchange!\n\nADSBexchange.com is a co-op of ADS-B/Mode S/MLAT feeders from around the world. This script will configure your current your ADS-B receiver to share your feeders data with ADS-B Exchange.\n\nWould you like to continue setup?"13 78
53
51
CONTINUESETUP=$?
54
52
if [ $CONTINUESETUP= 1 ];then
55
53
exit 0
56
54
fi
57
55
58
56
ADSBEXCHANGEUSERNAME=$(whiptail --backtitle "$BACKTITLETEXT" --title "ADS-B Exchange User Name" --inputbox "Please enter your ADS-B Exchange user name." 8 78 3>&11>&22>&3)
} | whiptail --backtitle "$BACKTITLETEXT" --title "Setting up ADS-B Exchange Feed" --gauge "Setting up your receiver to feed ADS-B Exchange..." 6 50 0
236
+
echo 100
237
+
sleep 0.25
171
238
239
+
} | whiptail --backtitle "$BACKTITLETEXT" --title "Setting Up ADS-B Exchange Feed" --gauge "Setting up your receiver to feed ADS-B Exchange..." 6 50 0
172
240
173
241
## SETUP COMPLETE
174
242
175
-
176
243
# Display the thank you message box.
177
244
whiptail --title "ADS-B Exchange Setup Script" --msgbox "Setup is now complete.\n\nYour feeder should now be feeding data to ADS-B Exchange.\nThanks again for choosing to share your data with ADS-B Exchange!\n\nIf you have questions or encountered any issues while using this script feel free to post them to one of the following places.\n\nhttps://github.com/jprochazka/adsb-exchange\nhttp://www.adsbexchange.com/forums/topic/ads-b-exchange-setup-script/" 16 73
0 commit comments