/[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 205 Revision 206
785 fi 785 fi
786 fi 786 fi
787 787
788 # Call user-defined postup function if it exists 788 # Call user-defined postup function if it exists
789 if is_function postup ; then 789 if is_function postup ; then
790 # We need to mark the service as started incase a
791 # postdown function wants to restart services that depend on us
792 mark_service_started "net.${iface}"
790 einfo "Running postup function" 793 einfo "Running postup function"
791 eindent 794 eindent
792 ( postup "${iface}" ) 795 ( postup "${iface}" )
793 eoutdent 796 eoutdent
794 fi 797 fi
821 return 1 824 return 1
822 fi 825 fi
823 826
824 iface_stop "${iface}" || return 1 # always succeeds, btw 827 iface_stop "${iface}" || return 1 # always succeeds, btw
825 828
829 # Mark us as inactive if called from the background
830 [[ ${IN_BACKGROUND} == "true" ]] && mark_service_inactive "net.${iface}"
831
826 # Call user-defined postdown function if it exists 832 # Call user-defined postdown function if it exists
827 if is_function postdown ; then 833 if is_function postdown ; then
834 # We need to mark the service as stopped incase a
835 # postdown function wants to restart services that depend on us
836 [[ ${IN_BACKGROUND} != "true" ]] && mark_service_stopped "net.${iface}"
828 einfo "Running postdown function" 837 einfo "Running postdown function"
829 eindent 838 eindent
830 ( postdown "${iface}" ) 839 ( postdown "${iface}" )
831 eoutdent 840 eoutdent
832 fi 841 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20