repo.or.cz
/
tomato
/
davidwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correct PPTP server firewall rules chain.
[tomato/davidwu.git]
/
release
/
src
/
router
/
bridge
/
tests
/
rmbr
blob
8d1dc302de2a1e6f23850131b1ed56e3d649ca24
1
#! /bin/sh
2
BR
=
${1:-"br549"}
3
4
# fetch ip of working br0
5
IP
=
`/sbin/ifconfig
$BR
| sed -n -e 's/^.*inet addr:\([0-9][0-9\.]*\).*$/\1/p'`
6
echo
"Using IP address
$IP
"
7
8
ifconfig
$BR
down
9
brctl delbr
$BR
10
ifconfig eth0
172.20.5.22
11
rmmod bridge