This commit is contained in:
Your Name
2024-02-14 00:42:24 -06:00
parent 0c5da80a05
commit a6fd1bfe03
7 changed files with 57 additions and 7 deletions

View File

@@ -9,7 +9,6 @@ if [ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" != "$(md5sum /data/openpil
# If /usr/comma/bg.org does not exist
if [ ! -f /usr/comma/bg.org ]; then
# Check if md5sum of /usr/comma/bg.jpg contains "642380ba4c0f00b16e9cf6e613f43eec"
if [[ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" == "642380ba4c0f00b16e9cf6e613f43eec" ]]; then
sudo mount -o remount,rw /
sudo cp /usr/comma/bg.jpg /usr/comma/bg.org
@@ -35,8 +34,15 @@ if [ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" != "$(md5sum /data/openpil
fi
if [ "$(md5sum md5sum /usr/comma/comma.sh | awk '{print $1}')" != "$(md5sum /data/openpilot/shell/usr_comma_comma.sh | awk '{print $1}')" ]; then
echo updated comma.sh
sudo cp /data/openpilot/shell/usr_comma_comma.sh /usr/comma/comma.sh
if [[ "$(md5sum /usr/comma/comma.sh | awk '{print $1}')" == "ddbac0b46dd02efd672a0ef31ca426cf" ]]; then
if [ ! -f /usr/comma/comma.org ]; then
sudo cp /usr/comma/comma.sh /usr/comma/comma.org
fi
fi
if [-f /usr/comma/comma.org ]; then
sudo cp /data/openpilot/shell/usr_comma_comma.sh /usr/comma/comma.sh
echo updated comma.sh
fi
fi
echo Applied custom logo for comma boot sequence
@@ -44,4 +50,5 @@ if [ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" != "$(md5sum /data/openpil
sleep 2
sudo mount -o remount,ro /
sudo sync
sleep 2
fi