/mandos/release

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

« back to all changes in this revision

Viewing changes to network-hooks.d/bridge

* network-hooks.d/bridge: Bug fix - really find brctl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
case "$1" in
40
40
    start)
41
 
        "$brctl" addbr "$BRIDGE"
 
41
        /usr/sbin/brctl addbr "$BRIDGE"
42
42
        for port in $PORTS; do
43
 
            "$brctl" addif "$BRIDGE" "$port"
44
 
            ip link set up "$port"
 
43
            /usr/sbin/brctl addif "$BRIDGE" "$port"
45
44
        done
46
45
        ip link set up "$BRIDGE"
47
 
        sleep "$DELAY"
48
46
        if [ -n "$IPADDRS" ]; then
49
47
            for ipaddr in $IPADDRS; do
50
48
                ip addr add "$ipaddr" dev "$BRIDGE"
59
57
    stop)
60
58
        ip link set down "$BRIDGE"
61
59
        for port in $PORTS; do
62
 
            ip link set down "$port"
63
 
            "$brctl" delif "$BRIDGE" "$port"
 
60
            /usr/sbin/brctl delif "$BRIDGE" "$port"
64
61
        done
65
 
        "$brctl" delbr "$BRIDGE"
 
62
        /usr/sbin/brctl delbr "$BRIDGE"
66
63
        ;;
67
64
    files)
68
65
        echo /bin/ip