File: rmbr

package info (click to toggle)
bridge-utils 1.7.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: ansic: 1,327; sh: 698; makefile: 99
file content (11 lines) | stat: -rwxr-xr-x 236 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
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