repo.or.cz
/
openadk.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
binutils: update to 2.43.1
[openadk.git]
/
package
/
base-files
/
src
/
etc
/
network
/
if-post-down.d
/
01-bridge
blob
47f3c976be824b8ce5352dd938f0dbe255809496
1
#!/bin/sh
2
3
if
[ !
-x
/
usr
/
sbin
/
brctl
]
4
then
5
exit
0
6
fi
7
8
case
"
$IF_BRIDGE_PORTS
"
in
9
""
)
10
exit
0
11
;;
12
none
)
13
INTERFACES
=
""
14
;;
15
*)
16
INTERFACES
=
"
$IF_BRIDGE_PORTS
"
17
;;
18
esac
19
20
for
IF
in
$INTERFACES
;
do
21
ip link
set
down dev
$IF
&&
brctl delif
$IFACE $IF
22
done
23
24
ip link
set
down dev
$IFACE
||
exit
1
25
brctl delbr
$IFACE
26
exit
0