Merge pull request #137 from AndyTaylorTweet/patch-1

Update install_fw_nanohs.sh
This commit is contained in:
Andy CA6JAU 2021-02-09 11:44:59 -03:00 committed by GitHub
commit 5cbaf98d2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"