[BACK]Return to postinstall CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/Attic/postinstall between version 1.71 and 1.72

version 1.71, 2004/02/01 02:34:03 version 1.72, 2004/02/03 08:02:41
Line 581  do_ssh()
Line 581  do_ssh()
 }  }
   
 #  #
 #  
 #  
 additem ssh_known_hosts "ssh known_hosts file update"  
 do_ssh_known_hosts()  
 {  
         failed=0  
   
         fs="${SRC_DIR}/etc/ssh/ssh_known_hosts"  
         fd="${DEST_DIR}/etc/ssh/ssh_known_hosts"  
   
         if [ ! -e "${fd}" ]; then  
                 if [ "${op}" = "check" ]; then  
                         msg "${fd} is missing"  
                         failed=1  
                 else  
                         if ! cp "${fs}" "${fd}"; then  
                                 failed=1  
                         else  
                                 msg "Copied ${fs} to ${fd}"  
                         fi  
                 fi  
         else  
                 src_vers=`awk '/\\$NetBSD/ {print $4}' "${fs}"`  
                 dst_vers=`awk '/\\$NetBSD/ {print $4}' "${fd}"`  
                 if [ "${src_vers}" != "${dst_vers}" ]; then  
                         msg "${fd} version: ${dest_vers}"  
                         msg "${fs} version: ${src_vers}"  
                         failed=1  
                 fi  
         fi  
         return  ${failed}  
 }  
   
 #  
 #       wscons  #       wscons
 #  #
 additem wscons "wscons configuration file update"  additem wscons "wscons configuration file update"

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

CVSweb <webmaster@jp.NetBSD.org>