summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
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