All pastes #100799 Raw Edit

Something

public text v1 · immutable
#100799 ·published 2006-07-26 13:25 UTC
rendered paste body
depend() {
        use coldplug hotplug pcmcia usb isdn wlan
        after *

        # Load any custom depend functions for the given interface
        # For example, br0 may need eth0 and eth1
        local iface=${myservice##*.}
        [[ $( type -t depend_${iface} ) == "function" ]] && depend_${iface}
}