Added NETMODE for firmware v1.1.0+

pull/9/head
Darren Kitchen 2019-11-08 17:43:48 -08:00 committed by GitHub
parent 98b052f9da
commit fdde217af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,9 @@
RESOURCE_TO_PING="192.168.86.27"
LED SETUP
# Set NETMODE to DHCP_CLIENT for Shark Jack v1.1.0+
NETMODE DHCP_CLIENT
# Wait for an IP address to be obtained
while ! ifconfig eth0 | grep "inet addr"; do sleep 1; done
sleep 2
ping -c1 $RESOURCE_TO_PING && LED FINISH || LED FAIL
ping -c1 $RESOURCE_TO_PING && LED FINISH || LED FAIL