]> 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>
Thu, 7 Jul 2022 00:15:35 +0000 (10:15 +1000)
commit76ed6f32e8a44d6f680ab037e9348c2cce44d190
treef9d157649623823b71158b1cd090c814d03001b5
parentabf9a59b1a2572b5cc7a37956a9184b75e9e8637
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

(cherry picked from commit abfb5b11739d64bf798516f305390cb369a69241)
bin/tests/system/ifconfig.sh