/[vps]/baselayout-vserver/branches/baselayout-1_12/net-scripts/net.modules.d/iproute2
Gentoo

Diff of /baselayout-vserver/branches/baselayout-1_12/net-scripts/net.modules.d/iproute2

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

Revision 205 Revision 206
44# Returns 1 if the interface exists, otherwise 0 44# Returns 1 if the interface exists, otherwise 0
45iproute2_exists() { 45iproute2_exists() {
46 local e=$( ip addr show label "$1" ) report="${2:-false}" 46 local e=$( ip addr show label "$1" ) report="${2:-false}"
47 [[ -n ${e} ]] && return 0 47 [[ -n ${e} ]] && return 0
48 48
49 ${report} && eerror "$1 does not exist" 49 if ${report} ; then
50 eerror "network interface $1 does not exist"
51 eerror "Please verify hardware or kernel module (driver)"
52 fi
50 return 1 53 return 1
51} 54}
52 55
53# void iproute2_up(char *interface) 56# void iproute2_up(char *interface)
54# 57#

Legend:
Removed from v.205  
changed lines
  Added in v.206

  ViewVC Help
Powered by ViewVC 1.1.20