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

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

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

Revision 2385 Revision 2386
665 local iface="$1" mod config_counter="-1" x config_worked=false 665 local iface="$1" mod config_counter="-1" x config_worked=false
666 local RC_INDENTATION="${RC_INDENTATION}" 666 local RC_INDENTATION="${RC_INDENTATION}"
667 local -a config=() fallback=() fallback_route=() conf=() a=() b=() 667 local -a config=() fallback=() fallback_route=() conf=() a=() b=()
668 local ifvar=$(bash_variable "$1") i= j= metric=0 668 local ifvar=$(bash_variable "$1") i= j= metric=0
669 669
670 interface_exists "${iface}" && interface_up "${iface}"
671
670 # pre Start any modules with 672 # pre Start any modules with
671 for mod in ${MODULES[@]}; do 673 for mod in ${MODULES[@]}; do
672 if is_function "${mod}_pre_start" ; then 674 if is_function "${mod}_pre_start" ; then
673 ${mod}_pre_start "${iface}" || { eend 1; return 1; } 675 ${mod}_pre_start "${iface}" || { eend 1; return 1; }
674 fi 676 fi
675 done 677 done
678
679 interface_exists "${iface}" && interface_up "${iface}"
676 680
677 x="metric_${ifvar}" 681 x="metric_${ifvar}"
678 # If we don't have a metric then calculate one 682 # If we don't have a metric then calculate one
679 # Our modules will set the metric variable to a suitable base 683 # Our modules will set the metric variable to a suitable base
680 # in their pre starts. 684 # in their pre starts.

Legend:
Removed from v.2385  
changed lines
  Added in v.2386

  ViewVC Help
Powered by ViewVC 1.1.20