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

Diff for /src/etc/rc between version 1.450 and 1.451

version 1.450, 2015/07/18 00:03:34 version 1.451, 2015/07/18 00:37:23
Line 19 
Line 19 
                         test -z "$_line" && continue                          test -z "$_line" && continue
                         echo $_line                          echo $_line
                 done                  done
         } < $_file          } <$_file
 }  }
   
 # Update resource limits when sysctl changes.  # Update resource limits when sysctl changes.
Line 51 
Line 51 
         done          done
 }  }
   
 # Apply sysctl(8) settings.  # Apply sysctl(8) settings.
 sysctl_conf() {  sysctl_conf() {
         test -s /etc/sysctl.conf || return          test -s /etc/sysctl.conf || return
   
Line 80 
Line 80 
         # delete comments and blank lines          # delete comments and blank lines
         set -- `stripcom /etc/mixerctl.conf`          set -- `stripcom /etc/mixerctl.conf`
         while [ $# -ge 1 ] ; do          while [ $# -ge 1 ] ; do
                 mixerctl -q $1 > /dev/null 2>&1                  mixerctl -q $1 >/dev/null 2>&1
                 shift                  shift
         done          done
 }  }
Line 116 
Line 116 
   
 # Populate net.inet.(tcp|udp).baddynamic with the contents of /etc/services so  # Populate net.inet.(tcp|udp).baddynamic with the contents of /etc/services so
 # as to avoid randomly allocating source ports that correspond to well-known  # as to avoid randomly allocating source ports that correspond to well-known
 # services.  # services.
 fill_baddynamic()  fill_baddynamic()
 {  {
         local _service=$1          local _service=$1
Line 138 
Line 138 
 }  }
   
 # Start daemon using the rc.d daemon control scripts.  # Start daemon using the rc.d daemon control scripts.
 # Usage: start_daemon daemon1 daemon2 daemon3  # Usage: start_daemon daemon1 daemon2 daemon3
 start_daemon()  start_daemon()
 {  {
         local _n          local _n
Line 369 
Line 369 
         touch /etc/resolv.conf          touch /etc/resolv.conf
 fi  fi
 sh /etc/netstart  sh /etc/netstart
 dmesg > /dev/random     # Any write triggers a rekey.  dmesg >/dev/random      # Any write triggers a rekey.
   
 # Load pf rules and bring up pfsync interface.  # Load pf rules and bring up pfsync interface.
 if [ X"${pf}" != X"NO" ]; then  if [ X"${pf}" != X"NO" ]; then
Line 470 
Line 470 
         install -c -o root -g wheel -m 664 /dev/null /etc/motd          install -c -o root -g wheel -m 664 /dev/null /etc/motd
 fi  fi
 if T=`mktemp /tmp/_motd.XXXXXXXXXX`; then  if T=`mktemp /tmp/_motd.XXXXXXXXXX`; then
         sysctl -n kern.version | sed 1q > $T          sysctl -n kern.version | sed 1q >$T
         echo "" >> $T          echo "" >>$T
         sed '1,/^$/d' < /etc/motd >> $T          sed '1,/^$/d' </etc/motd >>$T
         cmp -s $T /etc/motd || cp $T /etc/motd          cmp -s $T /etc/motd || cp $T /etc/motd
         rm -f $T          rm -f $T
 fi  fi
Line 481 
Line 481 
         if [ ! -f /var/account/acct ]; then          if [ ! -f /var/account/acct ]; then
                 touch /var/account/acct                  touch /var/account/acct
         fi          fi
         echo 'turning on accounting';   accton /var/account/acct          echo 'turning on accounting'; accton /var/account/acct
 fi  fi
   
 if [ -f /sbin/ldconfig ]; then  if [ -f /sbin/ldconfig ]; then
Line 495 
Line 495 
         ldconfig $shlib_dirs          ldconfig $shlib_dirs
 fi  fi
   
 echo 'preserving editor files.';        /usr/libexec/vi.recover  echo 'preserving editor files.'; /usr/libexec/vi.recover
   
 echo -n 'starting network daemons:'  echo -n 'starting network daemons:'
 start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated  start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated

Legend:
Removed from v.1.450  
changed lines
  Added in v.1.451