From a44fce2591356721149289659c8e0afe70808e02 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Tue, 9 Apr 2024 09:47:29 -0500 Subject: [PATCH] use different rpi detection Signed-off-by: Aaron Murray --- preinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preinstall b/preinstall index a5df09d..3ac7191 100755 --- a/preinstall +++ b/preinstall @@ -6,7 +6,7 @@ export LANG=C.UTF-8 export LANGUAGE=C export LC_ALL=C.UTF-8 -if grep -rq raspberrypi.org /etc/apt/*; then +if grep -iq raspberry /proc/cpuinfo; then apt-get --yes --no-install-recommends install jq mac="$(ip -j a show dev eth0 | jq -r .[].address | head -n1)" if [ -z "${mac}" ]; then