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 after the lpr has been deleted
- # and makes sure that the original file exists
- # and is given the right ownership and permissions
-
-
- if [ ! -r /usr/ucb/lpr.orig ]
- then
- echo "Cannot find /usr/ucb/lpr.orig"
- exit 1
- fi
-
- /bin/mv /usr/ucb/lpr.orig /usr/ucb/lpr
-
- /etc/chown root.daemon /usr/ucb/lpr
-
- chmod 4711 /usr/ucb/lpr
- chmod g+s /usr/ucb/lpr
-
- exit 0
-