This commit is contained in:
Your Name
2024-02-13 18:53:52 -06:00
parent b6ed5a2e25
commit d766a7d1b2

View File

@@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -x
# Check if md5sum of /usr/comma/bg.jpg is not equal to md5sum of /data/openpilot/shell/bg.jpg # Check if md5sum of /usr/comma/bg.jpg is not equal to md5sum of /data/openpilot/shell/bg.jpg
if [ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" != "$(md5sum /data/openpilot/shell/bg.jpg | awk '{print $1}')" ]; then if [ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" != "$(md5sum /data/openpilot/shell/bg.jpg | awk '{print $1}')" ]; then
sudo mount -o remount,rw / sudo mount -o remount,rw /
@@ -21,6 +23,7 @@ if [ "$(md5sum /usr/comma/bg.jpg | awk '{print $1}')" != "$(md5sum /data/openpil
if [ ! -f /usr/comma/revert_logo.sh ]; then if [ ! -f /usr/comma/revert_logo.sh ]; then
sudo cp /data/openpilot/shell/revert_logo.sh /usr/comma/revert_logo.sh sudo cp /data/openpilot/shell/revert_logo.sh /usr/comma/revert_logo.sh
if [[ "$(md5sum md5sum /usr/comma/comma.sh | awk '{print $1}')" == "642380ba4c0f00b16e9cf6e613f43eec" ]]; then if [[ "$(md5sum md5sum /usr/comma/comma.sh | awk '{print $1}')" == "642380ba4c0f00b16e9cf6e613f43eec" ]]; then
echo updated comma.sh
sudo cp /data/openpilot/shell/comma.sh /usr/comma/comma.sh sudo cp /data/openpilot/shell/comma.sh /usr/comma/comma.sh
fi fi
fi fi