Took out redundant lines.

pull/290/merge v2.6.1
Joe Prochazka 2018-02-28 21:41:10 -05:00 zatwierdzone przez GitHub
rodzic 625b0ce7e6
commit 990ced4c77
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 13 usunięć

Wyświetl plik

@ -118,17 +118,17 @@ echo -e ""
## SETUP UDEV RTL-SDR RULES
echo -e "\e[94m Downloading RTL-SDR udev rules...\e[97m"
echo ""
sudo curl --http1.1 https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules --output /etc/udev/rules.d/rtl-sdr.rules
echo ""
echo -e "\e[94m Restarting udev...\e[97m"
# Download the file rtl-sdr.rules from the osmocon rtl-sdr repository if it does not already exist.
if [[ ! -f "/etc/udev/rules.d/rtl-sdr.rules" ]] ; then
echo -e "\e[94m Downloading the file rtl-sdr.rules from the rtl-sdr repository...\e[97m"
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules
echo -e "\e[94m Restarting udev...\e[97m"
sudo service udev restart
fi
# Create an RTL-SDR blacklist file so the device does not claim SDR's for other purposes.
BlacklistModules
sudo service udev restart
## ATTEMPT TO DOWNLOAD OR UPDATE THE COMPONENT FROM GITHUB
if [[ -d "${RECEIVER_BUILD_DIRECTORY}/dump1090-mutability/dump1090" ]] && [[ -d "${RECEIVER_BUILD_DIRECTORY}/dump1090-mutability/dump1090/.git" ]] ; then
@ -364,12 +364,6 @@ if [[ ! -f "/usr/share/dump1090-mutability/html/upintheair.json" ]] ; then
fi
fi
# Download the file rtl-sdr.rules from the osmocon rtl-sdr repository if it does not already exist.
if [[ ! -f "/etc/udev/rules.d/rtl-sdr.rules" ]] ; then
echo -e "\e[94m Downloading the file rtl-sdr.rules from the rtl-sdr repository...\e[97m"
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules
fi
# (re)start dump1090-mutability.
if [[ "`sudo systemctl status dump1090-mutability 2>&1 | egrep -c "Active: active (running)"`" -gt 0 ]] ; then
echo -e "\e[94m Restarting the dump1090-mutability service...\e[97m"