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

Diff for /src/etc/rc between version 1.410 and 1.411

version 1.410, 2013/12/26 18:05:31 version 1.411, 2013/12/27 04:21:03
Line 102 
Line 102 
 random_seed()  random_seed()
 {  {
         if [ -f /var/db/host.random ]; then          if [ -f /var/db/host.random ]; then
                 dd if=/var/db/host.random of=/dev/arandom bs=65536 count=1 \                  dd if=/var/db/host.random of=/dev/random bs=65536 count=1 \
                     > /dev/null 2>&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
   
                 # reset seed file, so that if a shutdown-less reboot occurs,                  # reset seed file, so that if a shutdown-less reboot occurs,
                 # the next seed is not a repeat                  # the next seed is not a repeat
                 dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 \                  dd if=/dev/random of=/var/db/host.random bs=65536 count=1 \
                     > /dev/null 2>&1                      > /dev/null 2>&1
         fi          fi
 }  }
Line 230 
Line 230 
 . /etc/rc.conf  . /etc/rc.conf
   
 if [ X"$1" = X"shutdown" ]; then  if [ X"$1" = X"shutdown" ]; then
         dd if=/dev/arandom 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 -a -n "${pkg_scripts}" ]; then
Line 358 
Line 358 
         touch /etc/resolv.conf          touch /etc/resolv.conf
 fi  fi
 . /etc/netstart  . /etc/netstart
 echo rekey > /dev/arandom       # any write triggers an RC4 rekey  echo rekey > /dev/random        # any write triggers an RC4 rekey
   
 if [ X"${pf}" != X"NO" ]; then  if [ X"${pf}" != X"NO" ]; then
         if [ -f ${pf_rules} ]; then          if [ -f ${pf_rules} ]; then

Legend:
Removed from v.1.410  
changed lines
  Added in v.1.411