From 119dc2aabd307d4e2288fb4a435b7d323f004e5c Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 21 May 2024 20:12:20 -0400 Subject: [PATCH] bug fix --- fai/config/distro-install-common/ethusb-static | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fai/config/distro-install-common/ethusb-static b/fai/config/distro-install-common/ethusb-static index f6cdd62..c55b93d 100755 --- a/fai/config/distro-install-common/ethusb-static +++ b/fai/config/distro-install-common/ethusb-static @@ -99,7 +99,10 @@ dns=8.8.8.4;8.8.8.8;" exit 1 fi else - ip=$(getent ahostsv4 $HOSTNAME.office.fsf.org | awk '{ print $1 }' | head -n1) + if ! type -p dig &>/dev/null; then + apt-get install dig + fi + ip=$(dig +short @192.168.0.25 $HOSTNAME.office.fsf.org) net_info="address1=$ip/24,192.168.0.1 dns=192.168.0.10;192.168.0.25;" fi -- 2.30.2