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 deletion process takes place.
- # It makes sure that we are root and that the old lpr exists
- # where we expect it to
-
- ME=`/usr/ucb/whoami`
-
- if [ "$ME" != "root" ]
- then
- echo "Only root can uninstall this package"
- exit 1
- fi
-
-
- if [ ! -r /usr/ucb/lpr.orig ]
- then
- echo "Error: cannot find the original lpr (/usr/ucb/lpr.orig)"
- exit 1
- fi
-
-
- exit 0
-
-