From dbe566cb55948f19e93228a46eddca1a68c491eb Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Tue, 13 Aug 2024 09:54:26 -0500 Subject: [PATCH] Update install.sh for OPi5 Ubuntu 24.04 (#1390) This updates the install script to work correctly on Ubuntu 24.04 versions of the Orange Pi 5 images. Changes include: - installing libatomic1 - disabling networkd-wait-online if using Network Manager - using systemctl instead of service to detect if photonvision is running - detecting if this is a RK3588 cpu and enabling all cores --- scripts/install.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 472715598a..ba9cb69198 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -102,9 +102,14 @@ else echo 'GOVERNOR=performance' > /etc/default/cpufrequtils fi +echo "Installing libatomic" +apt-get install --yes libatomic1 +echo "libatomic installation complete." + if [[ "$INSTALL_NETWORK_MANAGER" == "true" ]]; then echo "Installing network-manager..." - apt-get install --yes network-manager + apt-get install --yes network-manager net-tools + systemctl disable systemd-networkd-wait-online.service cat > /etc/netplan/00-default-nm-renderer.yaml <