summaryrefslogtreecommitdiff
path: root/package/base-files/extra/etc/network/if-pre-up.d/03-bridge
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/extra/etc/network/if-pre-up.d/03-bridge')
-rwxr-xr-xpackage/base-files/extra/etc/network/if-pre-up.d/03-bridge29
1 files changed, 0 insertions, 29 deletions
diff --git a/package/base-files/extra/etc/network/if-pre-up.d/03-bridge b/package/base-files/extra/etc/network/if-pre-up.d/03-bridge
deleted file mode 100755
index 41ddb2b58..000000000
--- a/package/base-files/extra/etc/network/if-pre-up.d/03-bridge
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-[ -x /usr/sbin/brctl ] || exit 0
-
-case "$IF_BRIDGE_PORTS" in
- "")
- exit 0
- ;;
- none)
- INTERFACES=""
- ;;
- *)
- INTERFACES="$IF_BRIDGE_PORTS"
- ;;
-esac
-
-brctl addbr $IFACE || exit 1
-
-for IF in $INTERFACES; do
- if ! grep -q $IF /proc/net/dev; then
- echo "Error: interface '$IF' does not exist!"
- brctl delbr $IFACE
- exit 1
- fi
- brctl addif $IFACE $IF
- ip link set up dev $IF
-done
-
-exit 0