/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

* network-hooks.d/bridge: Bug fix - use the found brctl.

Show diffs side-by-side

added added

removed removed

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