summaryrefslogtreecommitdiff
path: root/polux/application/bridge-utils/tests/rmbr
diff options
context:
space:
mode:
Diffstat (limited to 'polux/application/bridge-utils/tests/rmbr')
-rw-r--r--polux/application/bridge-utils/tests/rmbr11
1 files changed, 11 insertions, 0 deletions
diff --git a/polux/application/bridge-utils/tests/rmbr b/polux/application/bridge-utils/tests/rmbr
new file mode 100644
index 0000000000..8d1dc302de
--- /dev/null
+++ b/polux/application/bridge-utils/tests/rmbr
@@ -0,0 +1,11 @@
+#! /bin/sh
+BR=${1:-"br549"}
+
+# fetch ip of working br0
+IP=`/sbin/ifconfig $BR | sed -n -e 's/^.*inet addr:\([0-9][0-9\.]*\).*$/\1/p'`
+echo "Using IP address $IP"
+
+ifconfig $BR down
+brctl delbr $BR
+ifconfig eth0 172.20.5.22
+rmmod bridge