From e4d036a202ce8102439ddef54d0b220e80ca2f0e Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 13 Jan 2024 14:07:46 +0100 Subject: [PATCH] init/boot: change ip timeout Signed-off-by: AuxXxilium --- files/initrd/opt/arc/boot.sh | 1 - files/initrd/opt/arc/init.sh | 1 - 2 files changed, 2 deletions(-) diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index a7ef86b..d58477a 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -182,7 +182,6 @@ elif [ "${DIRECTBOOT}" = "false" ]; then DRIVER=$(ls -ld /sys/class/net/${N}/device/driver 2>/dev/null | awk -F '/' '{print $NF}') COUNT=0 while true; do - sleep 3 if [[ "${STATICIP}" = "true" && "${N}" = "eth0" && -n "${ARCIP}" && ${BOOTCOUNT} -gt 0 ]]; then ARCIP="$(readConfigKey "arc.ip" "${USER_CONFIG_FILE}")" NETMASK="$(readConfigKey "arc.netmask" "${USER_CONFIG_FILE}")" diff --git a/files/initrd/opt/arc/init.sh b/files/initrd/opt/arc/init.sh index 9f26f65..990f51a 100755 --- a/files/initrd/opt/arc/init.sh +++ b/files/initrd/opt/arc/init.sh @@ -137,7 +137,6 @@ for N in ${ETHX}; do DRIVER=$(ls -ld /sys/class/net/${N}/device/driver 2>/dev/null | awk -F '/' '{print $NF}') COUNT=0 while true; do - sleep 3 if [[ "${STATICIP}" = "true" && "${N}" = "eth0" && -n "${ARCIP}" && ${BOOTCOUNT} -gt 0 ]]; then ARCIP="$(readConfigKey "arc.ip" "${USER_CONFIG_FILE}")" NETMASK="$(readConfigKey "arc.netmask" "${USER_CONFIG_FILE}")"