freenove_car/Code/Patch/patch_for_bullseye.sh
2021-11-16 17:12:51 +08:00

12 lines
364 B
Bash

#!/bin/sh
current_file=$0
cd "$(dirname "$current_file")"
#sudo cp /boot/config.txt /boot/config-backup.txt
#sudo cp ./config.txt /boot/config.txt
sudo cp /usr/lib/arm-linux-gnueabihf/libmmal.so /usr/lib/arm-linux-gnueabihf/libmmal-backup.so.backup
sudo cp ./libmmal.so /usr/lib/arm-linux-gnueabihf/libmmal.so
echo "patched complete! Please reboot the system!"