Changeset ce67c5a


Ignore:
Timestamp:
08/12/13 05:51:00 (15 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
3018894
Parents:
2ee61e0
Message:

Update sys-init to get rid of some loader.conf.tmp errors from showing during install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh

    rb77e435 rce67c5a  
    3232 
    3333# Add our notice to top of loader.conf 
    34 mv /boot/loader.conf /boot/loader.conf.tmp 
     34if [ -e "/boot/loader.conf" ] ; then 
     35  mv /boot/loader.conf /boot/loader.conf.tmp 
     36fi 
     37 
    3538cat <<EOF >/boot/loader.conf 
    3639# * IMPORTANT NOTICE * 
     
    3841############################################################################### 
    3942EOF 
    40 cat /boot/loader.conf.tmp >> /boot/loader.conf 
    41 rm /boot/loader.conf.tmp 
     43 
     44if [ -e "/boot/loader.conf.tmp" ] ; then 
     45  cat /boot/loader.conf.tmp >> /boot/loader.conf 
     46  rm /boot/loader.conf.tmp 
     47fi 
    4248 
    4349################################################ 
Note: See TracChangeset for help on using the changeset viewer.