This commit is contained in:
Your Name
2024-02-13 03:51:28 -06:00
parent fccc1221f6
commit 794b1d8bdd
4 changed files with 70 additions and 4 deletions

16
shell/revert_logo.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Check if /data/openpilot/shell/bg.jpg does not exist
if [ ! -f /data/openpilot/shell/bg.jpg ]; then
# Check if /usr/comma/bg.org does exist
if [ -f /usr/comma/bg.org ]; then
sudo mount -o remount,rw /
# Copy /usr/comma/bg.org to /usr/comma/bg.jpg
sudo cp /usr/comma/bg.org /usr/comma/bg.jpg
# Remove /usr/comma/bg.org
sudo rm /usr/comma/bg.org
sudo sync
sleep 2
sudo reboot
fi
fi