From 2aafc5f12a1fb69fd6dc23d61d64446facf61eec Mon Sep 17 00:00:00 2001 From: Lars Berning <151194+laberning@users.noreply.github.com> Date: Wed, 26 May 2021 09:06:28 +0200 Subject: [PATCH] adds gpio configuration to installer --- install/install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/install.sh b/install/install.sh index 0b0b5d3..589da28 100755 --- a/install/install.sh +++ b/install/install.sh @@ -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."