[BACK]Return to update_openbsd CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/update_openbsd between version 1.118 and 1.123

version 1.118, 2018/12/16 21:10:00 version 1.123, 2019/03/02 01:05:59
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $AFresh1: update_openbsd,v 1.117 2018/12/16 20:57:49 andrew Exp $  # $AFresh1: update_openbsd,v 1.122 2019/03/02 01:04:52 andrew Exp $
 #  #
 # Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com>  # Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com>
 #  #
Line 172 
Line 172 
     if [ X"" != X"${MIRROR}" -a X"" == X"${_v}" ]; then      if [ X"" != X"${MIRROR}" -a X"" == X"${_v}" ]; then
         if [ X"No" != X"${FORCE_DIR}" ]; then          if [ X"No" != X"${FORCE_DIR}" ]; then
             _dir=${FORCE_DIR}              _dir=${FORCE_DIR}
         elif sysctl kern.version | grep -q -- '-current '; then          elif sysctl kern.version | grep -q -e '-current ' -e '-beta '; then
             _dir=snapshots              _dir=snapshots
             FORCE_DIR=snapshots              FORCE_DIR=snapshots
         else          else
Line 763 
Line 763 
         echo Removing /sbin/oreboot          echo Removing /sbin/oreboot
         rm -f /sbin/oreboot          rm -f /sbin/oreboot
     fi      fi
   
       echo "===> Relinking to create unique kernel..."
       sha256 -h /var/db/kernel.SHA256 /bsd
       /usr/libexec/reorder_kernel
   
     update_etc      update_etc
   
     OPENUP=$( which openup 2>/dev/null )      OPENUP=$( which openup 2>/dev/null )
Line 770 
Line 775 
         echo "==> UPDATING WITH $OPENUP"          echo "==> UPDATING WITH $OPENUP"
         $OPENUP          $OPENUP
     else      else
           if [ X"snapshots" != X"$FORCE_DIR" ]; then
               echo '==> RUNNING SYSPATCH'
               syspatch
           fi
         echo '==> UPDATING PACKAGES'          echo '==> UPDATING PACKAGES'
         pkg_add -u          pkg_add -u
     fi      fi

Legend:
Removed from v.1.118  
changed lines
  Added in v.1.123

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>