diff --git a/00-pi_firmware_install.sh b/00-pi_firmware_install.sh index 5cefc70..11406a2 100644 --- a/00-pi_firmware_install.sh +++ b/00-pi_firmware_install.sh @@ -1,11 +1,24 @@ #!/bin/bash + +# Update system and install dependencies sudo apt-get update && sudo apt-get upgrade -y sudo apt install -y python3 -#sudo apt install -y python-pigpio sudo apt install -y pigpio python3-pigpio git +#sudo apt install -y python-pigpio + +# Clone the repository git clone https://gitea.fortis-scientia.com/RomanNum3ral/x735-v2.5 cd x735-v2.5 -sudo chmod +X *.sh + +# Make all shell scripts executable +sudo chmod +x *.sh + +# Run the installation script sudo bash install.sh -sudo -u anon echo "alias off='sudo x735softsd.sh'" >> ~/.bashrc -sudo -u anon echo "python /home/anon/x735-v2.5/pwm_fan_control.py&" >> ~/.bashrc \ No newline at end of file + +# Add alias and Python script to .bashrc for user 'anon' +sudo -u anon bash -c "echo \"alias off='sudo /home/anon/x735-v2.5/x735softsd.sh'\" >> ~/.bashrc" +sudo -u anon bash -c "echo \"python /home/anon/x735-v2.5/pwm_fan_control.py &\" >> ~/.bashrc" + +# Notify user +echo "Setup complete. Please open a new terminal for changes to take effect." \ No newline at end of file