From: Ian Kelling Date: Wed, 22 May 2024 00:12:20 +0000 (-0400) Subject: bug fix X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=119dc2aabd307d4e2288fb4a435b7d323f004e5c;p=automated-distro-installer bug fix --- 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