Update 00-pi_firmware_install.sh
This commit is contained in:
parent
43c1a33b41
commit
eb60dd7c7c
|
@ -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
|
||||
|
||||
# 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."
|
Loading…
Reference in New Issue