adafruit / Raspberry-Pi-Installer-Scripts

380 stars 158 forks source link

PiTFT Uninstall not working #271

Closed makermelissa closed 9 months ago

makermelissa commented 10 months ago

Script Command

sudo -E env PATH=$PATH python3 adafruit-pitft.py

Operating System

Raspberry Pi OS 64-bit Bookworm

Hardware

Raspberry Pi 5

Behavior

After uninstalling, it still shows the output on the display.

Description

I have learned that /boot/config.txt was moved to /boot/firmware/config.txt and that /boot/config.txt is now only a symbolic link to /boot/firmware/config.txt. When adafruit-pitft.py writes to /boot/config.txt, it removes the link and replaces it with a text file. The script should be modified to find the correct place of config.txt by checking if it exists in the new location first or even better would be following the symlink.

I'm not sure if it's a Pi 5 or bookworm issue, but with the correct fix, it should work either way.

Additional information

No response

makermelissa commented 9 months ago

Fixed by #272.