Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ echo "Your device will shutting down in 4 seconds..."
echo "0" > /sys/class/gpio/gpio$BUTTON/value
' > /usr/local/bin/x-c1-softsd.sh
sudo chmod +x /usr/local/bin/x-c1-softsd.sh

sed -i '/ExecStart/ s/$/ -n 127.0.0.1/' /lib/systemd/system/pigpiod.service
sudo systemctl enable pigpiod

CUR_DIR=$(pwd)
Expand Down
2 changes: 2 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ sudo sed -i '/pigpiod/d' /etc/rc.local

sudo sed -i '/x-c1/d' ~/.bashrc

sed -i 's/ -n 127.0.0.1//' /lib/systemd/system/pigpiod.service

sudo rm /usr/local/bin/x-c1-softsd.sh -f
sudo rm /etc/x-c1-pwr.sh -f

Expand Down