mirror of
https://github.com/smittix/intercept.git
synced 2026-05-30 03:19:28 -07:00
The apt-removal approach caused cascading failures: removing librtlsdr0 swept out dump1090-mutability and other reverse deps, then source builds reinstalled librtlsdr-dev (pulling librtlsdr0 back), and the dump1090 subshell crashed because kill "" (empty progress_pid after progress_pid=) returned non-zero and fired the global ERR trap. Switch to a targeted ldconfig priority file instead: - Write /etc/ld.so.conf.d/00-local-first.conf containing /usr/local/lib - Files named 00-* sort before aarch64-linux-gnu.conf alphabetically, so ldconfig lists /usr/local/lib/librtlsdr.so.0 (Blog) first - apt librtlsdr0, rtl-sdr, dump1090-mutability etc. are never touched - Source build functions keep their unconditional apt_install librtlsdr-dev Also fix the dump1090 EXIT trap: guard kill/wait against empty progress_pid so it does not fire the ERR trap after a clean exit 0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
55 KiB
Executable File
55 KiB
Executable File