]> git.ipfire.org Git - thirdparty/bind9.git/commit
update ifconfig.sh
authorMark Andrews <marka@isc.org>
Thu, 9 Jun 2022 08:13:35 +0000 (18:13 +1000)
committerMark Andrews <marka@isc.org>
Wed, 6 Jul 2022 23:54:48 +0000 (09:54 +1000)
commitabfb5b11739d64bf798516f305390cb369a69241
tree76d57bb9be0f949bfae2ee68b380a5e64118494b
parent00bfc1bf52492985a163b5f53594caf2bea5684d
update ifconfig.sh

* make it harder to get the interface numbers wrong by using 'max'
to specify the upper bound of the sequence of interfaces and use 'max'
when calculating the interface number
* extract the platform specific instruction into 'up' and 'down'
and call them from the inner loop so that the interface number is
calculated in one place.
* calculate the A and AAAA address in a single place rather than
in each command
* use /sbin/ipadm on Solaris 2.11 and greater
bin/tests/system/ifconfig.sh.in