[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.88 and 1.89

version 1.88, 2021/12/19 02:02:02 version 1.89, 2021/12/19 04:05:25
Line 118 
Line 118 
   
         # When we're not in the installer, the dmesg.boot can          # When we're not in the installer, the dmesg.boot can
         # contain multiple boots, so only look in the last one          # contain multiple boots, so only look in the last one
         sed -n 'H;/^OpenBSD/h;${g;p;}' /var/run/dmesg.boot |          _dmesgtail="$( echo ; sed -n 'H;/^OpenBSD/h;${g;p;}' /var/run/dmesg.boot |
             grep -e "^[a-z][a-z]*[0-9]" -e " not configured " | { \              grep -e "^[a-z][a-z]*[0-9]" -e " not configured " )"
                 _m=0  
                 set -A _dmesgtail  
                 while read -r _line; do  
                         _dmesgtail[$_m]="$_line"  
                         _m=$(( _m + 1 ))  
                 done  
   
                 grep -v '^[[:space:]]*#' "$FWPATTERNS" |          grep -v '^[[:space:]]*#' "$FWPATTERNS" |
                     while read -r _d _m; do              while read -r _d _m; do
                         [ "$_d" = "$_last" ] && continue                  [ "$_d" = "$_last" ] && continue
                         [ "$_m" ] || _m="^${_d}[0-9] at "                  [ "$_m" ] || _m="^${_d}[0-9] at "
   
                         if [ "$_m" = "${_m#^}" ]; then                  if [ "$_m" != "${_m#^}" ]; then
                                 _m="*$_m"                          _m="$( echo -n "\n${_m#^}" )"
                         else                  fi
                                 _m="${_m#^}"  
                         fi  
   
                         for _line in "${_dmesgtail[@]}"; do                  if [[ $_dmesgtail = *$_m* ]]; then
                                 if [[ $_line = ${_m}* ]]; then                          echo "$_d"
                                         echo "$_d"                          _last="$_d"
                                         _last="$_d"                  fi
                                 fi              done
                         done  
                     done  
         }  
 }  }
   
 firmware_filename() {  firmware_filename() {

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

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