#!/bin/sh -e

##########################################################################
#   Function description:
#       Pause until user presses return
##########################################################################

pause()
{
    local junk
    
    printf "Press return to continue..."
    read junk
}

mount -u -o rw /
mount -a

cd /usr/src
mergemaster -p
make installworld
mergemaster
make delete-old

cat << EOM

Reboot and run freebsd-ib-setup-finish after reboot.

EOM

pause

nextboot -D

