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

Diff for /src/etc/rc between version 1.466 and 1.467

version 1.466, 2015/10/18 03:51:11 version 1.467, 2015/10/18 21:33:18
Line 398 
Line 398 
 chown root:wheel /dev/tty[pqrstuvwxyzPQRST]*  chown root:wheel /dev/tty[pqrstuvwxyzPQRST]*
   
 # Check the password temp/lock file.  # Check the password temp/lock file.
 if [ -f /etc/ptmp ]; then  if [[ -f /etc/ptmp ]]; then
         logger -s -p auth.err \          logger -s -p auth.err \
             'password file may be incorrect -- /etc/ptmp exists'              'password file may be incorrect -- /etc/ptmp exists'
 fi  fi
Line 416 
Line 416 
 # correct permissions.  # correct permissions.
 [[ -d /usr/X11R6/lib ]] && mkdir -m 1777 /tmp/.{X11,ICE}-unix  [[ -d /usr/X11R6/lib ]] && mkdir -m 1777 /tmp/.{X11,ICE}-unix
   
 [ -f /etc/rc.securelevel ] && sh /etc/rc.securelevel  [[ -f /etc/rc.securelevel ]] && sh /etc/rc.securelevel
   
 # rc.securelevel did not specifically set -1 or 2, so select the default: 1.  # rc.securelevel did not specifically set -1 or 2, so select the default: 1.
 if [ `sysctl -n kern.securelevel` -eq 0 ]; then  (($(sysctl -n kern.securelevel) == 0)) && sysctl kern.securelevel=1
         sysctl kern.securelevel=1  
 fi  
   
   
 # Patch /etc/motd.  # Patch /etc/motd.
 if [ ! -f /etc/motd ]; then  if [[ ! -f /etc/motd ]]; then
         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
Line 434 
Line 434 
         rm -f $T          rm -f $T
 fi  fi
   
 if [ X"${accounting}" = X"YES" ]; then  if [[ $accounting == YES ]]; then
         if [ ! -f /var/account/acct ]; then          [[ ! -f /var/account/acct ]] && touch /var/account/acct
                 touch /var/account/acct          echo 'turning on accounting'
         fi          accton /var/account/acct
         echo 'turning on accounting'; accton /var/account/acct  
 fi  fi
   
 if [ -f /sbin/ldconfig ]; then  if [[ -x /sbin/ldconfig ]]; then
         echo 'creating runtime link editor directory cache.'          echo 'creating runtime link editor directory cache.'
         if [ -d /usr/local/lib ]; then          [[ -d /usr/local/lib ]] && shlib_dirs="/usr/local/lib"
                 shlib_dirs="/usr/local/lib $shlib_dirs"          [[ -d /usr/X11R6/lib ]] && shlib_dirs="/usr/X11R6/lib $shlib_dirs"
         fi  
         if [ -d /usr/X11R6/lib ]; then  
                 shlib_dirs="/usr/X11R6/lib $shlib_dirs"  
         fi  
         ldconfig $shlib_dirs          ldconfig $shlib_dirs
 fi  fi
   
Line 459 
Line 454 
 start_daemon relayd dhcpd dhcrelay mrouted dvmrpd radiusd eigrpd  start_daemon relayd dhcpd dhcrelay mrouted dvmrpd radiusd eigrpd
   
 if ifconfig lo0 inet6 >/dev/null 2>&1; then  if ifconfig lo0 inet6 >/dev/null 2>&1; then
         fw=`sysctl -n net.inet6.ip6.forwarding`          if (($(sysctl -n net.inet6.ip6.forwarding) == 1)); then
         if [ X"${fw}" = X"1" ]; then  
                 start_daemon route6d rtadvd                  start_daemon route6d rtadvd
         fi          fi
 fi  fi
Line 471 
Line 465 
 echo '.'  echo '.'
   
 # If rc.firsttime exists, run it just once, and make sure it is deleted.  # If rc.firsttime exists, run it just once, and make sure it is deleted.
 if [ -f /etc/rc.firsttime ]; then  if [[ -f /etc/rc.firsttime ]]; then
         mv /etc/rc.firsttime /etc/rc.firsttime.run          mv /etc/rc.firsttime /etc/rc.firsttime.run
         . /etc/rc.firsttime.run 2>&1 | tee /dev/tty |          . /etc/rc.firsttime.run 2>&1 | tee /dev/tty |
                 mail -Es "`hostname` rc.firsttime output" root >/dev/null                  mail -Es "`hostname` rc.firsttime output" root >/dev/null
Line 479 
Line 473 
 rm -f /etc/rc.firsttime.run  rm -f /etc/rc.firsttime.run
   
 # Run rc.d(8) scripts from packages.  # Run rc.d(8) scripts from packages.
 if [ -n "${pkg_scripts}" ]; then  if [[ -n $pkg_scripts ]]; then
         echo -n 'starting package daemons:'          echo -n 'starting package daemons:'
         for _r in $pkg_scripts; do          for _daemon in $pkg_scripts; do
                 if [ -x /etc/rc.d/${_r} ]; then                  if [[ -x /etc/rc.d/$_daemon ]]; then
                         start_daemon ${_r}                          start_daemon $_daemon
                 else                  else
                         echo -n " ${_r}(absent)"                          echo -n " ${_daemon}(absent)"
                 fi                  fi
         done          done
         echo '.'          echo '.'
 fi  fi
   
 [ -f /etc/rc.local ] && sh /etc/rc.local  [[ -f /etc/rc.local ]] && sh /etc/rc.local
   
 ifconfig -g carp -carpdemote 128        # disable carp interlock  ifconfig -g carp -carpdemote 128        # Disable carp interlock.
   
 mixerctl_conf  mixerctl_conf
   
 echo -n 'starting local daemons:'  echo -n 'starting local daemons:'
 start_daemon apmd sensorsd hotplugd watchdogd cron wsmoused xdm  start_daemon apmd sensorsd hotplugd watchdogd cron wsmoused xdm
 echo '.'  echo '.'

Legend:
Removed from v.1.466  
changed lines
  Added in v.1.467