/[vps]/baselayout-vserver/trunk/net-scripts/net.modules.d/dhcpcd
Gentoo

Diff of /baselayout-vserver/trunk/net-scripts/net.modules.d/dhcpcd

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

Revision 235 Revision 236
26dhcpcd_check_installed() { 26dhcpcd_check_installed() {
27 if [[ -x /sbin/dhcpcd ]]; then 27 if [[ -x /sbin/dhcpcd ]]; then
28 if dhcpcd -h 2>&1 | grep -q "etcDir" ; then 28 if dhcpcd -h 2>&1 | grep -q "etcDir" ; then
29 return 0 29 return 0
30 else 30 else
31 ${1:-false} && eerror "We require dhcpcd-1.3.22_p4-r12 or newer" 31 ${1:-false} && eerror "We require dhcpcd-2.0.0 or newer"
32 return 1 32 return 1
33 fi 33 fi
34 fi 34 fi
35 35
36 ${1:-false} && eerror "For DHCP (dhcpcd) support, emerge net-misc/dhcpcd" 36 ${1:-false} && eerror "For DHCP (dhcpcd) support, emerge net-misc/dhcpcd"
37 return 1 37 return 1
38}
39
40# char* dhcpcd_get_vars(char *interface)
41#
42# Returns a string spaced with possible user set
43# configuration variables
44dhcpcd_get_vars() {
45 echo "dhcpcd_$1 dhcp_$1"
46} 38}
47 39
48# bool dhcpcd_stop(char *iface) 40# bool dhcpcd_stop(char *iface)
49# 41#
50# Stop DHCP on an interface by calling dhcpcd -z $iface 42# Stop DHCP on an interface by calling dhcpcd -z $iface

Legend:
Removed from v.235  
changed lines
  Added in v.236

  ViewVC Help
Powered by ViewVC 1.1.20