From 8b7aa17303aab1316cb831294ca5a179089d8235 Mon Sep 17 00:00:00 2001 From: Giulio Date: Wed, 23 Sep 2020 10:43:53 +0200 Subject: [PATCH] Added delay to ethernet dhcp due to the interface not being ready --- build-tgr.sh | 3 --- conf/etc/network/interfaces | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build-tgr.sh b/build-tgr.sh index 378646a..2036ba9 100755 --- a/build-tgr.sh +++ b/build-tgr.sh @@ -36,9 +36,6 @@ echo "[+] Writing flags" sed -i "s/##FLAG1##/$flag1/g" target/overlay/var/www/html/includes/config.php echo $flag2 > target/overlay/flag chmod 444 target/overlay/flag -mkdir target/overlay/root -chmod 700 target/overlay/root -echo $flag3 > target/overlay/root/flag echo "[+] Building the keygen" mkdir -p target/overlay/usr/sbin diff --git a/conf/etc/network/interfaces b/conf/etc/network/interfaces index 2b85cbb..193c0a0 100644 --- a/conf/etc/network/interfaces +++ b/conf/etc/network/interfaces @@ -2,6 +2,7 @@ auto lo iface lo inet loopback auto eth0 + pre-up sleep 10 iface eth0 inet dhcp auto ap0