Skip to content

Commit

Permalink
unbreak readsb install script
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Aug 22, 2024
1 parent de173a2 commit e3d80e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions readsb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ if command -v apt &>/dev/null; then
if ! command -v nginx &>/dev/null && [[ -z "$NO_TAR1090" ]] ; then
packages+=(lighttpd)
fi
# librtlsdr0 is pulled in by librtlsdr-dev anyhow, thus omit it.
# this is to get compatibility with ubuntu24 which didn't manage to revert the needless library version change that was reverted upstream
packages=(librtlsdr-dev)
packages+=(librtlsdr-dev)
if grep -qs -e 'Ubuntu 24' /etc/os-release; then
packages+=(librtlsdr2)
else
packages+=(librtlsdr0)
fi
aptInstall "${packages[@]}"
fi

Expand Down

0 comments on commit e3d80e7

Please sign in to comment.