From f6521ed78e266c14b1aadc2312c782b25ca890d1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 27 Apr 2024 15:56:50 -0500 Subject: [PATCH] wip --- launch_openpilot.sh | 2 ++ system/clearpilot/configure/dependencies.sh | 28 ++++++++------------- system/clearpilot/on_start.sh | 3 +++ 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/launch_openpilot.sh b/launch_openpilot.sh index 2888814..8c2a08f 100755 --- a/launch_openpilot.sh +++ b/launch_openpilot.sh @@ -1,3 +1,5 @@ #!/usr/bin/bash +bash /data/openpilot/system/clearpilot/on_start.sh + exec ./launch_chffrplus.sh diff --git a/system/clearpilot/configure/dependencies.sh b/system/clearpilot/configure/dependencies.sh index 17bfa43..32f8a68 100644 --- a/system/clearpilot/configure/dependencies.sh +++ b/system/clearpilot/configure/dependencies.sh @@ -1,28 +1,22 @@ #!/bin/bash # Check if nodejs is installed -if ! which nodejs > /dev/null; then - #sudo mount -o remount,rw / +# if ! which nodejs > /dev/null; then +# #sudo mount -o remount,rw / - # Node.js is not installed, setting up the NodeSource Node.js 21.x repo - echo "Node.js not found. Setting up NodeSource Node.js 21.x repository..." - curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - +# # Node.js is not installed, setting up the NodeSource Node.js 21.x repo +# echo "Node.js not found. Setting up NodeSource Node.js 21.x repository..." +# curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - - # Install Node.js from the NodeSource repository - echo "Installing Node.js..." - sudo apt-get install -y nodejs -fi - -# apt-get update -# apt-get install -y nodejs npm +# # Install Node.js from the NodeSource repository +# echo "Installing Node.js..." +# sudo apt-get install -y nodejs +# fi apt-get update -apt-get install -y python3-pyqt5 +apt-get install -y nodejs npm python3-pyqt5 pywayland python3-pyqt5.qtwebengine pip3 install termqt -apt-get install python3-pyqt5.qtwebengine -# pip3 install PyQtWebEngine -pip3 install pywayland -cd /data/openpilot/third_party/libyuv; +cd /data/openpilot/third_party/libyuv bash build.sh cd libyuv && make && make install diff --git a/system/clearpilot/on_start.sh b/system/clearpilot/on_start.sh index e69de29..4c73a80 100644 --- a/system/clearpilot/on_start.sh +++ b/system/clearpilot/on_start.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +bash /data/openpilot/system/clearpilot/startup_logo/set_logo.sh \ No newline at end of file