Adding small fixes to payload.

pull/12/head
Private-Locker, LLC 2019-12-17 16:57:43 -08:00 committed by GitHub
parent bbf6c58837
commit af715af898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -38,9 +38,11 @@ function finish() {
sleep 1
# C2 Connect and send files
LED W FAST
c2_connect
sleep 1
if [[ -f "$C2PROVISION" ]]; then
LED W FAST
c2_connect
sleep 1
fi
LED FINISH
sleep 1
@ -56,8 +58,8 @@ function 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
# Wait for an IP address to be obtained - Blink cyan while waiting for IP
while ! ifconfig eth0 | grep "inet addr"; do sleep 1;LED C SOLID;sleep .1;LED SETUP; done
# Create tmp scan directory
mkdir -p $SCAN_DIR &> /dev/null
@ -71,8 +73,6 @@ function setup() {
i=0
# Find IP address and subnet
while [ -z "$SUBNET" ]; do
# Indication it is searching for IP/Subnet
LED B SOLID;sleep .25;LED SETUP
sleep 1 && find_subnet
done
}