aboutsummaryrefslogtreecommitdiffstats
path: root/main/bonding/bonding.pre-up
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-01-16 06:36:11 -0700
committerAriadne Conill <ariadne@dereferenced.org>2021-01-16 06:38:52 -0700
commit0bd0527214fd11b9316c097d5dac1907c7c4b13f (patch)
treeb60bc3f28631b3cd271c56da8096be5d13868908 /main/bonding/bonding.pre-up
parent1e12595f32ec3da10b7e0bbeef563715888e323f (diff)
downloadaports-0bd0527214fd11b9316c097d5dac1907c7c4b13f.tar.gz
aports-0bd0527214fd11b9316c097d5dac1907c7c4b13f.tar.bz2
aports-0bd0527214fd11b9316c097d5dac1907c7c4b13f.tar.xz
main/bonding: add support for bond-members statements
The newer ifupdown-ng bond executor uses bond-members instead of bond-slaves and rewrites the term as support for legacy terms was reimplemented as a term rewriter when namespaced terms was introduced in ifupdown-ng 0.10. Alpine still uses the legacy bonding scripts for 3.13, so we need to handle the rewritten term as well here. Fixes #12319.
Diffstat (limited to 'main/bonding/bonding.pre-up')
-rwxr-xr-xmain/bonding/bonding.pre-up2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/bonding/bonding.pre-up b/main/bonding/bonding.pre-up
index 17f27070cc..6d26740b1d 100755
--- a/main/bonding/bonding.pre-up
+++ b/main/bonding/bonding.pre-up
@@ -120,7 +120,7 @@ setup_slaves()
# Are there anything to do ?
# Option slaves deprecated, replaced by bond-slaves, but still supported for backward compatibility.
-IF_BOND_SLAVES=${IF_BOND_SLAVES:-$IF_SLAVES}
+IF_BOND_SLAVES=${IF_BOND_MEMBERS:-${IF_BOND_SLAVES:-$IF_SLAVES}}
if [ "$IF_BOND_MASTER" ] ; then
BOND_MASTER="$IF_BOND_MASTER"