#!/bin/sh
##
##  lp/lpr Wrapper for heterogenous SunOS and Solaris networks
##


if [ x$drucker = "x-Prima" ]; then
            ostype=`uname -r`
            if [ x$simplex = xYES ]; then
                case $ostype in
                    4.* ) drucker="-Prima.1"
                          lprcmd="lpr $drucker $anzahl $lpropt"
                          ;;
                    5.* ) lpropt="$lpropt -osimplex"
                          anzahl="-n`echo $anzahl | cut -c3`"
                          drucker=`echo $drucker | sed -e 's|-P|-d|'`
                          lprcmd="lp $drucker $anzahl $lpropt"
                          ;;
                esac
            fi
