/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to network-hooks.d/bridge

  • Committer: Teddy Hogeborn
  • Date: 2011-12-21 17:09:12 UTC
  • mfrom: (526 trunk)
  • mto: This revision was merged to the branch mainline in revision 527.
  • Revision ID: teddy@recompile.se-20111221170912-tr0v60ul607zhd2q
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        "$brctl" addbr "$BRIDGE"
42
42
        for port in $PORTS; do
43
43
            "$brctl" addif "$BRIDGE" "$port"
 
44
            ip link set up "$port"
44
45
        done
45
46
        ip link set up "$BRIDGE"
 
47
        sleep "$DELAY"
46
48
        if [ -n "$IPADDRS" ]; then
47
49
            for ipaddr in $IPADDRS; do
48
50
                ip addr add "$ipaddr" dev "$BRIDGE"
57
59
    stop)
58
60
        ip link set down "$BRIDGE"
59
61
        for port in $PORTS; do
 
62
            ip link set down "$port"
60
63
            "$brctl" delif "$BRIDGE" "$port"
61
64
        done
62
65
        "$brctl" delbr "$BRIDGE"