/[baselayout]/trunk/net-scripts/net.modules.d/iproute2
Gentoo

Diff of /trunk/net-scripts/net.modules.d/iproute2

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

Revision 534 Revision 535
32# 32#
33# Checks to see if we have the necessary package installed 33# Checks to see if we have the necessary package installed
34iproute2_check_depends() { 34iproute2_check_depends() {
35 local e 35 local e
36 36
37 [[ -z ${e} && $(type -t get_device) != function ]] && e="get_device" 37 [[ -z ${e} && function != $( type -t get_device ) ]] && e="get_device"
38 [[ -z ${e} ]] && return 0 38 [[ -z ${e} ]] && return 0
39 eerror "iproute2: net.eth0 is missing the required function ${e}\n" 39 eerror "iproute2: net.lo is missing the required function ${e}\n"
40 return 1 40 return 1
41} 41}
42 42
43# void iproute2_up(char *interface) 43# void iproute2_up(char *interface)
44# 44#
195 195
196 # Shut down the link if this isn't an alias or vlan 196 # Shut down the link if this isn't an alias or vlan
197 [[ ${label} == ${iface} ]] && iproute2_down ${iface} 197 [[ ${label} == ${iface} ]] && iproute2_down ${iface}
198} 198}
199 199
200# bool iproute2_iface_start(char *interface, char *options ...) 200# bool iproute2_confgiure(char *interface, char *options ...)
201# 201#
202# Starts the interface 202# Starts the interface
203# Returns 0 on success, otherwise 1 203# Returns 0 on success, otherwise 1
204iproute2_iface_start() { 204iproute2_configure() {
205 local label=${1} iface=$(get_device ${1}) 205 local label=${1} iface=$(get_device ${1})
206 206
207 # Extract the config 207 # Extract the config
208 local -a config=( "$@" ) 208 local -a config=( "$@" )
209 config=${config[@]:1} 209 config=${config[@]:1}

Legend:
Removed from v.534  
changed lines
  Added in v.535

  ViewVC Help
Powered by ViewVC 1.1.20