summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-05 18:03:23 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-05 18:03:23 +0200
commite9c6302edf1ea5216e43dc7268587f24076d0318 (patch)
tree6a625ef02f66725bae09140db249142d235955bc /setup-interfaces.in
parent970db2474f94f73b5c5a5ede89c6310df21ef758 (diff)
downloadalpine-conf-e9c6302edf1ea5216e43dc7268587f24076d0318.zip
setup-interface: avoid install bridge/bonding with ifupdown-ng
We don't need to install bridge or bonding packages with ifupdown-ng.
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index fe4dac3..c5c683f 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -493,11 +493,15 @@ prompt_for_interfaces() {
echo "auto $iface" >> interfaces
echo "iface $iface inet $type" >> interfaces
if [ -n "$bridge_ports" ]; then
- PKGS="$PKGS bridge"
+ if ! [ -f "$ROOT"usr/libexec/ifupdown-ng/bridge ]; then
+ PKGS="$PKGS bridge"
+ fi
echo -e "\tbridge-ports $bridge_ports" >> interfaces
fi
if [ -n "$bond_slaves" ]; then
- PKGS="$PKGS bonding"
+ if ! [ -f "$ROOT"usr/libexec/ifupdown-ng/bond ]; then
+ PKGS="$PKGS bonding"
+ fi
echo -e "\tbond-slaves $bond_slaves" >> interfaces
fi
if [ -n "$raw_device" ]; then