/[vps]/baselayout-vserver/branches/baselayout-1_12/net-scripts/init.d/net.lo
Gentoo

Diff of /baselayout-vserver/branches/baselayout-1_12/net-scripts/init.d/net.lo

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

Revision 413 Revision 414
696 696
697 # We must support old configs 697 # We must support old configs
698 if [[ -z ${config} ]] ; then 698 if [[ -z ${config} ]] ; then
699 interface_get_old_config "${iface}" || return 1 699 interface_get_old_config "${iface}" || return 1
700 if [[ -n ${config} ]] ; then 700 if [[ -n ${config} ]] ; then
701 ewarn "You are using a depreciated configuration syntax for ${iface}" 701 ewarn "You are using a deprecated configuration syntax for ${iface}"
702 ewarn "You are advised to read /etc/conf.d/net.example and upgrade it accordingly" 702 ewarn "You are advised to read /etc/conf.d/net.example and upgrade it accordingly"
703 fi 703 fi
704 fi 704 fi
705 705
706 # Handle "noop" correctly 706 # Handle "noop" correctly
752 # We need to test to see if it's an IP address or a function 752 # We need to test to see if it's an IP address or a function
753 # We do this by testing if the 1st character is a digit 753 # We do this by testing if the 1st character is a digit
754 elif [[ ${conf[0]:0:1} == [[:digit:]] || ${conf[0]} == *:* ]] ; then 754 elif [[ ${conf[0]:0:1} == [[:digit:]] || ${conf[0]} == *:* ]] ; then
755 x="0" 755 x="0"
756 if ! is_loopback "${iface}" ; then 756 if ! is_loopback "${iface}" ; then
757 if is_function arping_address_exists ; then 757 if [[ " ${MODULES[@]} " == *" arping "* ]] ; then
758 if arping_address_exists "${iface}" "${conf[0]}" ; then 758 if arping_address_exists "${iface}" "${conf[0]}" ; then
759 eerror "${conf[0]%%/*} already taken on ${iface}" 759 eerror "${conf[0]%%/*} already taken on ${iface}"
760 x="1" 760 x="1"
761 fi 761 fi
762 fi 762 fi

Legend:
Removed from v.413  
changed lines
  Added in v.414

  ViewVC Help
Powered by ViewVC 1.1.20