fix: test: Fix ifconfig.sh script

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

Closes #5423

Merge branch '5423-fix-ifconfig-sh-script' into 'main'

See merge request isc-projects/bind9!10740
This commit is contained in:
Mark Andrews 2025-07-17 08:12:59 +10:00
commit 6b906e3097

View file

@ -66,7 +66,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
;;