Fix ifconfig.sh script

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

(cherry picked from commit 7ba91e3820)
This commit is contained in:
Mark Andrews 2025-07-16 12:27:24 +10:00
parent 4255d6d80a
commit b6df481f3f

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
;;