Skip to content

Commit

Permalink
added custom gpio_list file
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed Jan 27, 2022
1 parent c625634 commit 72dd816
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 33 deletions.
31 changes: 0 additions & 31 deletions GracefulShutdown.sh

This file was deleted.

6 changes: 6 additions & 0 deletions ReadMe
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ The remaining 5 relays are manual on/off only.
This script should be run manually initally.
It will then called from reinstallMods to reinstall functionality after a Venus update

Custom GPIO list:

If /data/setupOptions/RpiGpioSetup/gpio_list exists it is used in place
of the one in the package directory.
This accommodates Relay HATs, etc. that use different GPIO pins.

Setup:

The easiest way to install this or other of my packages is to first install SetupHelper
Expand Down
4 changes: 4 additions & 0 deletions changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v3.6:
added custom gpio_list (/data/setupOptions/RpiGpioSetup/gpio_list)
if present, this file is installed in place of the one in the package directory

v3.5:
added comment in the ReadMe about the GPIO pion for shutdown
no functional changes
Expand Down
7 changes: 6 additions & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ fi
#### installing
if [ $scriptAction == 'INSTALL' ] ; then

updateActiveFile "$gpioListFile"
# use a custom gpio list if present
if [ -f "$setupOptionsDir/gpio_list" ]; then
updateActiveFile "$setupOptionsDir/gpio_list" "$gpioListFile"
else
updateActiveFile "$gpioListFile"
fi

# modify relaystate.py for additional relays to prevent system calc crash
updateActiveFile "$relayStateFile"
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.5
v3.6

0 comments on commit 72dd816

Please sign in to comment.