[9.20] fix: test: Fix ifconfig.sh script

Add missing test for the variable 'a' being empty on linux.

Closes #5423

Backport of MR !10740

Merge branch 'backport-5423-fix-ifconfig-sh-script-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10744
This commit is contained in:
Mark Andrews 2025-07-17 08:50:45 +10:00
commit 66ebede266

View file

@ -86,7 +86,7 @@ up() {
[ "$aaaa" ] && ip address add $aaaa/64 dev lo
ip link set dev lo:$int mtu 1500
else
ifconfig lo:$int $a up netmask 255.255.255.0 mtu 1500
[ "$a" ] && ifconfig lo:$int $a up netmask 255.255.255.0 mtu 1500
[ "$aaaa" ] && ifconfig lo inet6 add $aaaa/64
fi
;;