Download the script
git clone https://github.com/isthisausername2/pwnagotchi_rpi_zero_2_fix.git
Enter the directory
cd pwnagotchi_rpi_zero_2_fix
Set the file as executable
chmod u+x ./pwn_rpi02w.sh
Run the script
sudo ./pwn_rpi02w.sh
or ./pwn_rpi02w.sh
if already root