adds gpio configuration to installer

This commit is contained in:
Lars Berning 2021-05-26 09:06:28 +02:00
parent 28ea452e4a
commit 2aafc5f12a
No known key found for this signature in database
GPG Key ID: 028E73C9E1D8A0B3
1 changed files with 6 additions and 1 deletions

View File

@ -174,6 +174,10 @@ if ! [[ -f "config/config.js" ]]; then
sudo cp install/config.js config/
fi
print
print "Setting up GPIO 17 as input and enable the pull-up resistor..."
echo -e "\n# configure GPIO 17 as input and enable the pull-up resistor for Open Rowing Monitor\ngpio=17=pu,ip" | sudo tee -a /boot/config.txt > /dev/null
print
print "Setting up Open Rowing Monitor as autostarting system service..."
sudo cp install/openrowingmonitor.service /lib/systemd/system/
@ -220,5 +224,6 @@ sudo systemctl status openrowingmonitor
print
print "Installation of Open Rowing Monitor finished."
print "Open Rowing Monitor should now be up and running."
print "You can now adjust the configuration in $INSTALL_DIR/config/config.js either via ssh or via the network share"
print
print "You should now adjust the configuration in $INSTALL_DIR/config/config.js either via ssh or via the network share"
print "Please reboot the device for all features and settings to take effect."