/[baselayout]/branches/rc-scripts-1_6/net-scripts/net.modules.d/bonding
Gentoo

Diff of /branches/rc-scripts-1_6/net-scripts/net.modules.d/bonding

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 756 Revision 757
1# Interface bonding module for net-scripts 1# Interface bonding module for net-scripts
2# Version 1.0.2 2# Version 1.0.3
3# Copyright (c) 2004 Gentoo Foundation 3# Copyright (c) 2004 Gentoo Foundation
4# Distributed under the terms of the GNU General Public License V2 4# Distributed under the terms of the GNU General Public License V2
5# Contributed by Roy Marples (uberlord@gentoo.org) 5# Contributed by Roy Marples (uberlord@gentoo.org)
6
7# bool bonding_check_installed(void)
8#
9# Returns 1 if ifenslave is installed, otherwise 0
10bonding_check_installed() {
11 [[ -x /sbin/ifenslave ]] && return 0
12 ${1:-false} && eerror "For link aggregation (bonding) support, emerge net-misc/ifenslave"
13 return 1
14}
15 6
16# char* bonding_provides(void) 7# char* bonding_provides(void)
17# 8#
18# Returns a string to change module definition for starting up 9# Returns a string to change module definition for starting up
19bonding_provides() { 10bonding_provides() {
24# 15#
25# Sets up the dependancies for the module 16# Sets up the dependancies for the module
26bonding_depend() { 17bonding_depend() {
27 after interface 18 after interface
28 before vlan dhcp 19 before vlan dhcp
29 need interface 20}
21
22# bool bonding_check_installed(void)
23#
24# Returns 1 if ifenslave is installed, otherwise 0
25bonding_check_installed() {
26 [[ -x /sbin/ifenslave ]] && return 0
27 ${1:-false} && eerror "For link aggregation (bonding) support, emerge net-misc/ifenslave"
28 return 1
30} 29}
31 30
32# bool bonding_check_depends(void) 31# bool bonding_check_depends(void)
33# 32#
34# Checks to see if we have the needed functions 33# Checks to see if we have the needed functions

Legend:
Removed from v.756  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.20