Andreas Klemm on Thu, 25 May 2000 23:45:30 +0200 (CEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Problem reading input in SETUP script.


On Thu, May 25, 2000 at 12:19:16PM -0400, Kenneth Rogers wrote:
> Micheal hit the problem right on the head.  My gs version was neither 5.5x or
> 6.x.  I'm going to fix that. :)  Perhaps this is a check that SETUP could be a
> little more robust on???  Anyway, thanks for the reply.

do_check_gs_version()
{
        GS_VERSION=`gs -h | head -1 | awk '{ print $3 }'`
        case $GS_VERSION in
            6*) # o.k.
                ;;
            *)
                echo "Found ghostscript version $GS_VERSION ..."
                echo "You should upgrade to gs 6.01 for full driver support"
                echo "prior installing printers with SETUP."
                echo $n "Do you you want to continue ? [Y/n] $c"
                read answer
                case $answer in
                        N|n)    echo "o.k., terminating."
                                exit 1
                                ;;
                esac
                ;;
        esac                                                             

Isn't this informative enough ?

-- 
Andreas Klemm                               http://people.FreeBSD.ORG/~andreas
                                     http://www.freebsd.org/~fsmp/SMP/SMP.html
                                   powered by Symmetric MultiProcessor FreeBSD
New APSFILTER 542 and songs from our band - http://people.freebsd.org/~andreas