[BACK]Return to netstart CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/netstart between version 1.158 and 1.159

version 1.158, 2015/10/26 19:24:04 version 1.159, 2015/11/01 15:37:18
Line 169 
Line 169 
   
 # If we were invoked with a list of interface names, just reconfigure these  # If we were invoked with a list of interface names, just reconfigure these
 # interfaces (or bridges) and return.  # interfaces (or bridges) and return.
 if [[ $1 == autoboot ]]; then  if (($# > 0)); then
         shift          for _if; do ifstart $_if; done
 fi  
 if [ $# -gt 0 ]; then  
         while [ $# -gt 0 ]; do  
                 ifstart $1  
                 shift  
         done  
         ifautoconf          ifautoconf
         return          return
 fi  fi
Line 184 
Line 178 
 # Otherwise, process with the complete network initialization.  # Otherwise, process with the complete network initialization.
   
 # /etc/myname contains my symbolic name.  # /etc/myname contains my symbolic name.
 if [ -f /etc/myname ]; then  [[ -f /etc/myname ]] && hostname "$(stripcom /etc/myname)"
         hostname "$(stripcom /etc/myname)"  
 fi  
   
 # Set the address for the loopback interface.  Bringing the interface up,  # Set the address for the loopback interface.  Bringing the interface up,
 # automatically invokes the IPv6 address ::1.  # automatically invokes the IPv6 address ::1.
Line 287 
Line 279 
 NO:YES)  NO:YES)
         ;;          ;;
 *:NO)  *:NO)
         maddr=`if [ "$multicast_host" = "YES" ]; then          maddr=$(if [[ $multicast_host == YES ]]; then
                 ed -s '!route -qn show -inet' <<EOF                  ed -s '!route -qn show -inet' <<EOF
 /^default/p  /^default/p
 EOF  EOF
Line 295 
Line 287 
                 ed -s "!ifconfig $multicast_host" <<EOF                  ed -s "!ifconfig $multicast_host" <<EOF
 /^      inet /p  /^      inet /p
 EOF  EOF
         fi 2>/dev/null`          fi 2>/dev/null)
         if [ "X${maddr}" != "X" ]; then          if [[ -n $maddr ]]; then
                 set $maddr                  set $maddr
                 route -qn add -net 224.0.0.0/4 -interface $2 >/dev/null                  route -qn add -net 224.0.0.0/4 -interface $2 >/dev/null
         else          else
Line 320 
Line 312 
 # Reject 127/8 other than 127.0.0.1.  # Reject 127/8 other than 127.0.0.1.
 route -qn add -net 127 127.0.0.1 -reject >/dev/null  route -qn add -net 127 127.0.0.1 -reject >/dev/null
   
 if [ "$ip6kernel" = "YES" ]; then  if [[ $ip6kernel == YES ]]; then
         # This is to make sure DAD is completed before going further.          # This is to make sure DAD is completed before going further.
         count=0          count=0
         while [ $((count++)) -lt 10 -a "x"`sysctl -n net.inet6.ip6.dad_pending` != "x0" ]; do          while ((count++ < 10 && $(sysctl -n net.inet6.ip6.dad_pending) != 0)); do
                 sleep 1                  sleep 1
         done          done
 fi  fi

Legend:
Removed from v.1.158  
changed lines
  Added in v.1.159