[BACK]Return to fw_install.sh CVS log [TXT][DIR] Up to [local] / openbsd / fw_update

Diff for /openbsd/fw_update/fw_install.sh between version 1.31 and 1.36

version 1.31, 2021/11/18 02:18:32 version 1.36, 2021/11/27 06:38:06
Line 1 
Line 1 
 #!/bin/ksh  #!/bin/ksh
   #       $OpenBSD$
 set -e  set -e
   
 # Fake up some things from install.sub that we don't need to actually do  # Fake up some things from install.sub that we don't need to actually do
Line 63 
Line 64 
         do_as _file "$@"          do_as _file "$@"
 }  }
   
 # "fail" needs to be replaced with the "ask_yn" loop like in the installer.  VNAME=${VNAME:-$(sysctl -n kern.osrelease)}
 _issue=  VERSION=${VERSION:-"${VNAME%.*}${VNAME#*.}"}
 fail() {  FWDIR=${FWDIR:-$VNAME}
         echo $_issue >&2  
         exit 1  
 }  
   
 VNAME=$(sysctl -n kern.osrelease)  
 VERSION="${VNAME%.*}${VNAME#*.}"  
 FWDIR="$VNAME"  
 MODE=${MODE:-install}  MODE=${MODE:-install}
   
 # TODO: We need the firmware for the system we just installed  # TODO: We need the firmware for the system we just installed
Line 94 
Line 88 
 FWPATTERNS="file:${0%/*}/firmware_patterns"  FWPATTERNS="file:${0%/*}/firmware_patterns"
   
 # TODO: support srclocal installation of firmware somehow  # TODO: support srclocal installation of firmware somehow
 fw_update() {  fw_install() {
         local _src=$1 _tmpfs_list _tmpfs _tmpsrc \          local _src=$1 _tmpfs_list _tmpfs _tmpsrc \
                 _t=Get _cfile="/tmp/SHA256" _pkgdir=${DESTDIR}/var/db/pkg \                  _t=Get _cfile="/tmp/SHA256" _pkgdir=${DESTDIR}/var/db/pkg \
                 _f _r _remove _i _installed                  _f _r _remove _i _installed
Line 246 
Line 240 
         done          done
 }  }
   
 fw_update "$FWURL"  fw_install "$FWURL"

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.36

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