Skip to content

Commit

Permalink
Update install_opi5.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Dec 28, 2023
1 parent 10b2a50 commit 8d71a30
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions install_opi5.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
apt-get update
apt-get upgrade -y

cd /tmp
wget https://git.io/JJrEP -O install.sh
chmod +x install.sh

sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' install.sh

./install.sh

# Create pi/raspberry login
if id "$1" >/dev/null 2>&1; then
echo 'user found'
else
echo "creating pi user"
useradd pi -b /home
sudo usermod -a -G sudo pi
fi

echo "pi:raspberry" | chpasswd

# Remove extra packages too
apt-get update
wget https://git.io/JJrEP -O install.sh
chmod +x install.sh

sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' install.sh

./install.sh
rm install.sh

# Remove extra packages

apt-get purge -y python3 gdb gcc g++ linux-headers* libgcc*-dev *qt*
apt-get autoremove -y
Expand Down

0 comments on commit 8d71a30

Please sign in to comment.