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

Diff for /src/etc/rc between version 1.148 and 1.149

version 1.148, 2000/07/13 16:26:13 version 1.149, 2000/08/05 06:38:55
Line 112 
Line 112 
 echo 'setting tty flags'  echo 'setting tty flags'
 ttyflags -a  ttyflags -a
   
 # if there's no /var/db/host.random, make one through /dev/urandom  
 if [ ! -f /var/db/host.random ]; then  
         dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \  
                 >/dev/null 2>&1  
         chmod 600 /var/db/host.random >/dev/null 2>&1  
 else  
         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 \  
             > /dev/null 2>&1  
 fi  
   
 if [ -f /etc/sysctl.conf ]; then  if [ -f /etc/sysctl.conf ]; then
 (  (
         # delete comments and blank lines          # delete comments and blank lines
Line 141 
Line 129 
   
 mount /usr >/dev/null 2>&1  mount /usr >/dev/null 2>&1
 mount /var >/dev/null 2>&1  mount /var >/dev/null 2>&1
   
   # if there's no /var/db/host.random, make one through /dev/urandom
   if [ ! -f /var/db/host.random ]; then
           dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \
                   >/dev/null 2>&1
           chmod 600 /var/db/host.random >/dev/null 2>&1
   else
           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 \
               > /dev/null 2>&1
   fi
   
 # clean up left-over files  # clean up left-over files
 rm -f /etc/nologin  rm -f /etc/nologin

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149