diff --git a/install_opi5.sh b/install_opi5.sh index 44ed14b..7b57c73 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -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