Added NETMODE for firmware v1.1.0+

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

View File

@ -23,13 +23,15 @@ LOG_DIR=/root/loot/package-installer
function FAIL() { LED FAIL; exit; }
function SUCCESS() { LED FINISH; exit; }
LED SETUP
# Make log file
mkdir -p $LOG_DIR
LED SETUP
# Set NETMODE to DHCP_CLIENT for Shark Jack v1.1.0+
NETMODE DHCP_CLIENT
# Make log file
mkdir -p $LOG_DIR
LOG_FILE="package-installer_$(find $LOG_DIR -type f | wc -l).log"
DISK_SPACE_BEFORE=$(df -h | grep overlayfs | awk {'print $4'})
LOG="$LOG_DIR/$LOG_FILE"
DISK_SPACE_BEFORE=$(df -h | grep overlayfs | awk {'print $4'})
LOG="$LOG_DIR/$LOG_FILE"
# Wait until Shark Jack has an IP address
while [ -z "$IPADDR" ]; do sleep 1 && IPADDR=$(ifconfig eth0 | grep "inet addr"); done