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

Diff for /src/etc/rc between version 1.345 and 1.346

version 1.345, 2010/11/08 19:44:36 version 1.346, 2010/12/22 18:13:14
Line 102 
Line 102 
 random_seed()  random_seed()
 {  {
         if [ -f /var/db/host.random -a "X$random_seed_done" = "X" ]; then          if [ -f /var/db/host.random -a "X$random_seed_done" = "X" ]; then
                 dd if=/var/db/host.random of=/dev/urandom bs=1024 count=64 \  
                     > /dev/null 2>&1  
                 dd if=/var/db/host.random of=/dev/arandom bs=1024 count=64 \                  dd if=/var/db/host.random of=/dev/arandom bs=1024 count=64 \
                     > /dev/null 2>&1                      > /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/urandom of=/var/db/host.random bs=1024 count=64 \                  dd if=/dev/arandom of=/var/db/host.random bs=1024 count=64 \
                     > /dev/null 2>&1                      > /dev/null 2>&1
   
                 random_seed_done=1                  random_seed_done=1
Line 161 
Line 159 
 . /etc/rc.conf  . /etc/rc.conf
   
 if [ X"$1" = X"shutdown" ]; then  if [ X"$1" = X"shutdown" ]; then
         dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 >/dev/null 2>&1          dd if=/dev/arandom of=/var/db/host.random bs=1024 count=64 >/dev/null 2>&1
         chmod 600 /var/db/host.random >/dev/null 2>&1          chmod 600 /var/db/host.random >/dev/null 2>&1
         if [ $? -eq 0 -a -f /etc/rc.shutdown ]; then          if [ $? -eq 0 -a -f /etc/rc.shutdown ]; then
                 echo /etc/rc.shutdown in progress...                  echo /etc/rc.shutdown in progress...
Line 310 
Line 308 
 mount -s /usr >/dev/null 2>&1  mount -s /usr >/dev/null 2>&1
 mount -s /var >/dev/null 2>&1  mount -s /var >/dev/null 2>&1
   
 # if there's no /var/db/host.random, make one through /dev/urandom  # if there's no /var/db/host.random, use /dev/arandom to create one
 if [ ! -f /var/db/host.random ]; then  if [ ! -f /var/db/host.random ]; then
         dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \          dd if=/dev/arandom of=/var/db/host.random bs=1024 count=64 \
                 >/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
 else  else

Legend:
Removed from v.1.345  
changed lines
  Added in v.1.346