#! /bin/sh
# $Id$
+if [ -d /var/athena ] && [ -w /var/athena ]; then
+ exec >/var/athena/moira_update.log 2>&1
+else
+ exec >/tmp/moira_update.log 2>&1
+fi
+
# The following exit codes are defined and MUST BE CONSISTENT with the
# error codes the library uses:
MR_MISSINGFILE=47836473
# Build full printcap and spools
cat $PCLOCAL $PCGEN > $PRINTCAP
/usr/athena/etc/checkpc -f
+if [ $? != 0 ]; then
+ exit $MR_MKCRED
+fi
/usr/athena/etc/lpc reread
+if [ $? != 0 ]; then
+ exit $MR_MKCRED
+fi
# cleanup
test -f $TARFILE && rm -f $TARFILE