From 14e56cd575bf63885658dcf2355d73d68b7000fc Mon Sep 17 00:00:00 2001 From: David Prevot Date: Tue, 5 Dec 2023 15:17:25 +0100 Subject: [PATCH] check_broadcomfirmware: use apt-policy (making it useful before Debian 10) --- linux/evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/evocheck.sh b/linux/evocheck.sh index 132a552..f9c23d5 100755 --- a/linux/evocheck.sh +++ b/linux/evocheck.sh @@ -893,7 +893,7 @@ check_broadcomfirmware() { if [ -x "${LSPCI_BIN}" ]; then if ${LSPCI_BIN} | grep -q 'NetXtreme II'; then { is_installed firmware-bnx2 \ - && grep -q "^deb http://mirror.evolix.org/debian.* non-free" /etc/apt/sources.list; + && apt-cache policy | grep "\bl=Debian\b" | grep --quiet -v "\b,c=non-free\b" } || failed "IS_BROADCOMFIRMWARE" "missing non-free repository" fi else