Changeset b5e5e3e


Ignore:
Timestamp:
08/23/13 09:46:35 (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
7a97446
Parents:
af7bd01
Message:

Add some error checking to pkg commands in pc-thinclient

File:
1 edited

Legend:

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

    rec35fb2b rb5e5e3e  
    306306 
    307307        # Start by adding pcbsd-utils 
    308         pkg -c ${PXEWORLD} install -y pcbsd-utils 
     308        rc_halt "pkg -c ${PXEWORLD} install -y pcbsd-utils" 
    309309         
    310310        # Remove old pc-sysinstall so we use new one in /usr/local/sbin 
     
    317317 
    318318        # Install Xorg 
    319         pkg -c ${PXEWORLD} install -y xorg 
     319        rc_halt "pkg -c ${PXEWORLD} install -y xorg" 
    320320 
    321321        # Need to install / use GDM on the base system 
    322322        if [ ! -e "/usr/local/sbin/gdm" ] ; then 
    323                 pkg install -y gdm 
     323                rc_halt "pkg install -y gdm" 
    324324        fi 
    325325 
     
    395395 
    396396        echo "Installing $DHCPPORT" 
    397         pkg install -y ${DHCPPORT} 
    398         if [ "$?" != "0" ] ; then exit_err "Failed installing ${DHCPPORT}"; fi 
     397        rc_halt "pkg install -y ${DHCPPORT}" 
    399398} 
    400399 
Note: See TracChangeset for help on using the changeset viewer.