# Copyright (C) 2002 Ensim Corporation. All Rights Reserved.
#

F_create_applicationfloppy()
{
    # the oem installer can not be copied to floppy	
    local setup_size=`wc -c ../application/wpinstall.sh | cut -f1 -d " "`
    local floppy_size=1457664
    if [ $setup_size > $floppy_size ]
    then
        echo ""
        echo " The setup program can not be copied to a floppy. "
        echo " Transfer the setup program to the target machine"
        echo " once you have the latter ready"
        return 0
    fi 
    echo ""
    echo "  At this point, you have the option of copying the Webppliance setup program"
    echo "  onto a floppy disk. This is not a necessary step, as you can always transfer"
    echo "  the setup program to the target machine once you have the latter ready."
    echo ""
    F_ckyorn "y" "> Would you like to copy the Webppliance setup to disk?"
    if [ $_q_yorn = "n" ]
    then
        return 0
    fi
    echo ""
    echo "  [Creating Application Setup Floppy]"
    echo ""
    echo "> Please insert a blank DOS formatted diskette in the floppy drive."
    echo "> (You must use a FORMATTED diskette!)"
    echo -n "> Press <ENTER> when you are ready ... "
    read _q_yorn

    F_copy_application

    echo ""
    echo "> Please remove the floppy diskette from the drive."
    echo -n "> Press <ENTER> to proceed ... "
    read _q_yorn
}

# __END__
