home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Written by TjL <luomat@peak.org>
- #
- # Generous help, corrections, and suggestions
- # by Rex Dieter <rdieter@math.unl.edu>
- #
- #
- # This script operates before the lpr is installed.
- # It backs up the original
-
- ME=`whoami`
-
- if [ "$ME" != "root" ]
- then
- echo ""
- echo "This package must be installed by root"
- echo ""
-
- exit 1
- fi
-
-
- if [ ! -r /usr/ucb/lpr.distribution ]
- then
- /bin/cp -p /usr/ucb/lpr /usr/ucp/lpr.distribution
- /bin/chmod 511 /usr/ucb/lpr.distribution
- echo ""
- echo "Made a backup of the original /usr/ucp/lpr"
- echo "at /usr/ucb/lpr.distribution"
- echo ""
-
-
- fi
-
- /bin/cp /usr/ucb/lpr /usr/ucb/lpr.orig
-
- /bin/chmod 511 /usr/ucb/lpr.orig
-
- exit 0
-
-