Changeset 81e27dd


Ignore:
Timestamp:
01/07/14 08:25:43 (7 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
132067e
Parents:
b3e939a
Message:

Fix a bug starting networking when doing major updates

While here, fix issue creating the backup pkg.txz file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-updatemanager/pc-updatemanager

    rf566c15 r81e27dd  
    433433  fi 
    434434 
     435  clear 
     436  echo "Starting networking..." 
     437  echo "" 
     438  # Enable networking 
     439  /etc/rc.d/devfs restart 
     440  /etc/rc.d/netif restart 
     441  sleep 8 
     442  clear 
     443 
    435444  # Now its time to force a pkg-update of all packages to their new FreeBSD compiled versions 
    436445  pc-updatemanager pkgupdate -f 
     
    444453  grub-mkconfig -o /boot/grub/grub.cfg 
    445454  if [ $? -ne 0 ] ; then 
    446      echo "Warning: Failed running 'pc-updatemanager pkgupdate -f'" 
     455     echo "Warning: Failed running 'grub-mkconfig -o /boot/grub/grub.cfg'" 
    447456     echo "Press ENTER to continue" 
    448457     read tmp 
     
    476485 
    477486  # Lets backup old pkgng 
    478   oPkg=`pkg info pkg | awk '{print $1}'` 
     487  oPkg=`pkg info pkg | head -n 1 | awk '{print $1}'` 
    479488  pkg create -o /usr/local/tmp/ ${oPkg} 
    480489  if [ -e "/usr/local/tmp/oldPkg.txz" ] ; then rm /usr/local/tmp/oldPkg.txz; fi 
Note: See TracChangeset for help on using the changeset viewer.