瀏覽代碼

using better librtlsdr that utilizes the internal IF filter to supress band noise

pull/131/head
Pascal 3 年之前
父節點
當前提交
e2a5bce8ed
共有 1 個檔案被更改,包括 23 行新增3 行删除
  1. +23
    -3
      install.sh

+ 23
- 3
install.sh 查看文件

@@ -104,11 +104,11 @@ fi
if [ -e /usr/local/bin/rtl_fm ]; then
log_done "rtl-sdr was already installed"
else
log_running "Installing rtl-sdr from osmocom..."
log_running "Installing rtl-sdr from librtlsdr..."
(
cd /tmp/
git clone https://github.com/osmocom/rtl-sdr.git
cd rtl-sdr/
git clone https://github.com/librtlsdr/librtlsdr.git
cd librtlsdr/
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
@@ -206,6 +206,26 @@ else
log_done "medet installed"
fi

### Install noaa-apt
if command -v noaa-apt &> /dev/null; then
log_done "noaa-apt was already installed"
else
if [[ $(uname -m) == *"arm"* ]]; then
log_running "Installing noaa-apt arm..."
unzip software/noaa-apt-1.3.0-armv7-linux-gnueabihf-nogui.zip
sudo mv noaa-apt /usr/bin
sudo mv res /usr/bin #ok, this is not so nice, but it works
elif [[ $(uname -m) == *"x86_64"* ]]; then
log_running "Installing noaa-apt x86..."
sudo dpkg -i software/noaa-apt_1.3.0-1_amd64.deb
else
log_error "Unknown archictecture $(uname -m)!"
exit -1
fi
log_done "noaa-apt installed"
fi


### Cron the scheduler
set +e
crontab -l | grep -q "raspberry-noaa"


Loading…
取消
儲存