imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / base-files / src / etc / network / if-post-down.d / 01-bridge
blob47f3c976be824b8ce5352dd938f0dbe255809496
1 #!/bin/sh
3 if [ ! -x /usr/sbin/brctl ]
4 then
5 exit 0
6 fi
8 case "$IF_BRIDGE_PORTS" in
9 "")
10 exit 0
12 none)
13 INTERFACES=""
16 INTERFACES="$IF_BRIDGE_PORTS"
18 esac
20 for IF in $INTERFACES; do
21 ip link set down dev $IF && brctl delif $IFACE $IF
22 done
24 ip link set down dev $IFACE || exit 1
25 brctl delbr $IFACE
26 exit 0