slcp-opi-zero-installer/install.sh

16 lines
514 B
Bash
Raw Normal View History

2022-11-16 15:21:14 +00:00
echo "Installing Dependencies"
sudo apt update
2022-11-17 06:37:50 +00:00
sudo apt install -y python3 python3-pip
2022-11-16 15:21:14 +00:00
sudo pip3 install siwat-light-control-protocol
2022-11-17 06:37:50 +00:00
echo "Moving Directory to SLCP"
sudo mv -v ./ /slcp
2022-11-16 15:21:14 +00:00
sudo chmod 777 -Rv /slcp
2022-11-17 06:37:50 +00:00
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\""