* move libffi to base/ Category
[t2sde.git] / package / network / bridge-utils / rocknet_bridge.sh
blob52fd2fe2b5c89bfb0c4d30c78f01c108c8e24fd5
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bridge-utils/rocknet_bridge.sh
3 # Copyright (C) 2008 - 2022 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 public_bridge() {
13 addcode up 2 5 "brctl addbr $if"
14 for i; do
15 addcode up 3 5 "ip link set $i up"
16 addcode up 3 6 "brctl addif $if $i"
17 done
19 # interfaces are implicitly removed from the bridge on delbr
20 addcode down 1 1 "brctl delbr $if"