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

Diff for /src/etc/rc between version 1.412 and 1.413

version 1.412, 2013/12/27 04:21:48 version 1.413, 2013/12/27 22:15:40
Line 233 
Line 233 
         dd if=/dev/random of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1          dd if=/dev/random of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1
         chmod 600 /var/db/host.random >/dev/null 2>&1          chmod 600 /var/db/host.random >/dev/null 2>&1
         _c=$?          _c=$?
         if [ ${_c} -eq 0 -a -n "${pkg_scripts}" ]; then          if [ ${_c} -eq 0 ]; then
                 echo -n 'stopping package daemons:'                  if [ -n "${pkg_scripts}" ]; then
                 while [ -n "${pkg_scripts}" ]; do                          echo -n 'stopping package daemons:'
                         _r=${pkg_scripts##* }                          while [ -n "${pkg_scripts}" ]; do
                         pkg_scripts=${pkg_scripts%%*( )${_r}}                                  _r=${pkg_scripts##* }
                         [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop                                  pkg_scripts=${pkg_scripts%%*( )${_r}}
                 done                                  [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop
                 echo '.'                          done
         fi                          echo '.'
         if [ ${_c} -eq 0 -a -f /etc/rc.shutdown ]; then                  fi
   
                 echo /etc/rc.shutdown in progress...                  echo /etc/rc.shutdown in progress...
                 . /etc/rc.shutdown                  . /etc/rc.shutdown
                 echo /etc/rc.shutdown complete.                  echo /etc/rc.shutdown complete.
           else
                   echo single user: not running shutdown scripts
           fi
   
                 # bring carp interfaces down gracefully          # bring carp interfaces down gracefully
                 ifconfig | while read a b; do          ifconfig | while read a b; do
                         case $a in                  case $a in
                         carp+([0-9]):) ifconfig ${a%:} down ;;                  carp+([0-9]):) ifconfig ${a%:} down ;;
                         esac                  esac
                 done          done
   
                 if [ X"${powerdown}" = X"YES" ]; then          if [ X"${powerdown}" = X"YES" ]; then
                         exit 2                  exit 2
                 fi  
   
         else  
                 echo single user: not running /etc/rc.shutdown  
         fi          fi
         exit 0          exit 0
 fi  fi

Legend:
Removed from v.1.412  
changed lines
  Added in v.1.413