File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/modules/gui/filesystem/home/pi/scripts Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,12 @@ if [ ! -f /etc/gpu_enabled ]; then
44 sudo sed -i /boot/cmdline.txt -e " s/ quiet//"
55 sudo sed -i /boot/cmdline.txt -e " s/ splash//"
66 sudo sed -i /boot/cmdline.txt -e " s/ plymouth.ignore-serial-consoles//"
7- sudo sed -i /boot/config.txt -e " s/^\#dtoverlay=vc4-kms-v3d/dtoverlay=vc4-kms-v3d/"
7+ check=" $( sudo cat /proc/cpuinfo | grep ' Revision' | awk ' {print $3}' | sed -e ' s/[a-c]//' ) "
8+ if [ " ${check} " != " 03111" ]; then
9+ sudo sed -i /boot/config.txt -e " s/^\#dtoverlay=vc4-kms-v3d/dtoverlay=vc4-kms-v3d/"
10+ printf " dtoverlay=vc4-kms-v3d\n" | sudo tee -a /boot/config.txt
11+ fi
812 sudo sed -i /boot/config.txt -e " s/^gpu_mem/\#gpu_mem/"
9- printf " dtoverlay=vc4-kms-v3d\n" | sudo tee -a /boot/config.txt
1013 touch /etc/gpu_enabled
1114 sudo shutdown -r now
1215fi
You can’t perform that action at this time.
0 commit comments