use different rpi detection

Signed-off-by: Aaron Murray <plugins@omv-extras.org>
This commit is contained in:
Aaron Murray 2024-04-09 09:47:29 -05:00
parent 49fba6567a
commit a44fce2591

View File

@ -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