Open main menu

Changes

XScript

103 bytes removed, 19:21, 15 June 2023
sudo apt-get update
sudo apt-get -y upgrade
#sudo apt-get -y install git i2c-tools python3 python3-smbus python3-rpi.gpio
git clone https://github.com/geekworm-com/xscript.git
sudo sed -i '$ i /etc/pwr.sh &' /etc/rc.local
echo "alias xoff='sudo /usr/local/bin/softsd.sh'" >> ~/.bashrc
 
#Enable fan fun when the device reboot
sudo sed -i '$ i python3 /root/xscript/fan-rpi.py&' /etc/rc.local
sudo reboot now