From 69b93507a9e0363dca82efeacdc8adb6070fb748 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Mon, 30 Sep 2024 11:05:01 +0200 Subject: [PATCH] uboot: Honor static network settings If the user has manually configured all required network parameters, honor that setup, by skipping DHCP, and directly fetch the image. --- board/common/uboot/scripts/ixprepdhcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/common/uboot/scripts/ixprepdhcp.sh b/board/common/uboot/scripts/ixprepdhcp.sh index ef4f6629..0fe7dbca 100644 --- a/board/common/uboot/scripts/ixprepdhcp.sh +++ b/board/common/uboot/scripts/ixprepdhcp.sh @@ -1,6 +1,6 @@ setenv autoload no -if dhcp; then +if test -n "${ipaddr}" -a -n "${netmask}" -a -n "${serverip}" -a -n "${bootfile}" || dhcp; then setenv proto tftp setenv dltool tftpboot