From f2b1839fdcada7b456086839f26efc9a9fcb74df Mon Sep 17 00:00:00 2001 From: Smittix Date: Mon, 5 Jan 2026 13:54:48 +0000 Subject: [PATCH] Check dump1090 availability per Debian version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Try dump1090-fa, dump1090-mutability, dump1090 variants - Use pkg_available() to check actual installability - Skip gracefully on Debian Trixie and other versions without it - Only show manual install message if not already installed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- setup.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 61a949b..d1af18f 100755 --- a/setup.sh +++ b/setup.sh @@ -261,10 +261,16 @@ install_debian_tools() { echo -e "${YELLOW}Note: rtl-433 not found in repositories. Install manually or from source.${NC}" fi - # dump1090 is not in Debian repos - show manual install info - if ! check_cmd dump1090; then + # dump1090 - try available variants, not available on all Debian versions + if pkg_available dump1090-fa; then + $SUDO apt install -y dump1090-fa + elif pkg_available dump1090-mutability; then + $SUDO apt install -y dump1090-mutability + elif pkg_available dump1090; then + $SUDO apt install -y dump1090 + elif ! check_cmd dump1090; then echo "" - echo -e "${YELLOW}Note: dump1090 must be installed manually (not in Debian repos).${NC}" + echo -e "${YELLOW}Note: dump1090 not available in your repos (e.g. Debian Trixie).${NC}" echo " FlightAware version: https://flightaware.com/adsb/piaware/install" echo " Or from source: https://github.com/flightaware/dump1090" fi