diff --git a/raspi-config b/raspi-config index dcc7de1..419031b 100755 --- a/raspi-config +++ b/raspi-config @@ -23,6 +23,11 @@ is_pitwo() { return $? } +is_pizero() { + grep -q "^Revision\s*:\s*[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]" /proc/cpuinfo + return $? +} + get_pi_type() { if is_pione; then echo 1 @@ -990,6 +995,10 @@ EOF } do_gldriver() { + if is_pione || is_pizero; then + whiptail --msgbox "GL driver cannot be used on Pi 1 or Pi 0" 20 60 2 + return 1 + fi if [ ! -e /boot/overlays/vc4-kms-v3d-overlay.dtb ]; then whiptail --msgbox "Driver and kernel not present on your system. Please update" 20 60 2 return 1