From: Mark Andrews Date: Wed, 16 Jul 2025 02:27:24 +0000 (+1000) Subject: Fix ifconfig.sh script X-Git-Tag: v9.21.11~43^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba91e382063280bedd6898aa6244c2183419a15;p=thirdparty%2Fbind9.git Fix ifconfig.sh script Add missing test for the variable 'a' being empty on linux. --- diff --git a/bin/tests/system/ifconfig.sh.in b/bin/tests/system/ifconfig.sh.in index a729055e22a..126777c6580 100755 --- a/bin/tests/system/ifconfig.sh.in +++ b/bin/tests/system/ifconfig.sh.in @@ -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 ;;