Update install_fw_nanohs.sh

If this runs on a Nano Pi board running on Pi-Star, reset some gpio pins to put the modem in the correct state.
Only affects this single Modem (as far as I know)
pull/137/head
Andy Taylor 5 years ago committed by GitHub
parent 138260fef7
commit cf00e2f347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.