diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-07-05 18:03:23 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-07-05 18:03:23 +0200 |
commit | e9c6302edf1ea5216e43dc7268587f24076d0318 (patch) | |
tree | 6a625ef02f66725bae09140db249142d235955bc /setup-interfaces.in | |
parent | 970db2474f94f73b5c5a5ede89c6310df21ef758 (diff) | |
download | alpine-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.in | 8 |
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 |