Skip to content

Commit

Permalink
Merge pull request juribeparada#137 from AndyTaylorTweet/patch-1
Browse files Browse the repository at this point in the history
Update install_fw_nanohs.sh
  • Loading branch information
juribeparada authored Feb 9, 2021
2 parents 138260f + cf00e2f commit 5cbaf98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/install_fw_nanohs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# If we run this on a NanoPi board set the GPIO pins
if [ -f /etc/pistar-release ]; then
hardware=$(grep -i hardware /etc/pistar-release | awk -F "= " '{print $2}')
if [[ ${hardware} == "NanoPi" ]]; then
echo 3 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio3/direction
echo 1 > /sys/class/gpio/gpio3/value
echo 3 > /sys/class/gpio/unexport
fi
fi

# Configure latest version
FW_VERSION="v1.5.2"

Expand Down

0 comments on commit 5cbaf98

Please sign in to comment.