menu -f /tmp/set.6 -o /tmp/out < ${TDEV} >${TDEV} 2>/dev/null
rm -f $UPGRADE_STORE/mrgfail.files
fi
exit 0
}
SCR_LNGH=3
if [ "$i" -ge "$SCR_LNGH" ]
then
# Menu too full for additional messages, print it now.
menu -f /tmp/set.6 -o /tmp/out < ${TDEV} >${TDEV} 2>/dev/null
cp ${MENU_DIR}/set.9 /tmp/menu.last.$$
fi
if [ "$i" != 0 -a "$i" -lt "$SCR_LNGH" ]
then
# Menu has space for additional messages, append to it.
cp /tmp/set.6 /tmp/menu.last.$$
fi
if [ "$i" = 0 ]
then
# Create new menu for messages.
cp ${MENU_DIR}/set.9 /tmp/menu.last.$$
fi
#
# Put the finishing touches on this menu and print it
#
[ -f /tmp/pkgfail ] && echo >> /tmp/menu.last.$$
[ -f /tmp/pkgfail ] && pfmt -s nostd -g ${PKGMSG}:3 "Details on any failures are detailed in electronic mail sent to the\nlogin ID \"root\"\n" >> /tmp/menu.last.$$ 2>&1
[ "${NOMRGLIST}" -o "${MRGFAILLIST}" ] && pfmt -s nostd -g ${PKGMSG}:4 "Press the 'F1' key for information about your System Setup Files.\n" >> /tmp/menu.last.$$ 2>&1
echo >> /tmp/menu.last.$$
menu -f /tmp/menu.last.$$ -o /tmp/out < ${TDEV} >${TDEV} 2>/dev/null