slcp-opi-zero-installer/install.sh

16 lines
514 B
Bash

echo "Installing Dependencies"
sudo apt update
sudo apt install -y python3 python3-pip
sudo pip3 install siwat-light-control-protocol
echo "Moving Directory to SLCP"
sudo mv -v ./ /slcp
sudo chmod 777 -Rv /slcp
echo "Creating systemd Service"
sudo chmod +x /slcp/jumpstart.sh
sudo ln -v /slcp/slcp.service /lib/systemd/system/slcp.service
sudo systemctl daemon-reload
sudo systemctl enable slcp.service
echo "Installation Completed!"
echo "Adjust /slcp/config.json then run sudo \"systemctl start slcp.service\""