Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / packaging / HP-UX / scripts / openafs-clnt.configure
CommitLineData
805e021f
CE
1#!/bin/sh
2##############
3# Product: OPENAFS
4# Fileset: OPENAFS.OPENAFS-CLNT
5# configure
6# @(#) $Revision$
7# @(#) $Revision$
8##############
9#
10# (c) Copyright 2003
11#
12########
13
14# The global variables SUCCESS, FAILURE, WARNING, EXCLUDE, PATH, ROOT,
15# SW_CTL_SCRIPT_NAME, _pf, PRODUCT, and FILESET are all set by control_utils.
16
17set -a
18UTILS="/usr/lbin/sw/control_utils"
19if [[ ! -f ${UTILS} ]]
20then
21 echo "ERROR: Cannot find ${UTILS}"
22 exit 1
23fi
24. ${UTILS}
25
26exitval=$SUCCESS # Anticipate success
27
28############################################################################
29#
30# Add cacheinfo info only if it does not locally exist
31#
32
33if [[ -d /usr/newconfig/usr/vice/etc && ! -f /usr/vice/etc/cacheinfo ]]; then
34
35 cp /usr/newconfig/usr/vice/etc/cacheinfo /usr/vice/etc
36 chmog 644 bin bin /usr/vice/etc/cacheinfo
37
38fi
39#
40# Add CellServDB info only if it does not locally exist
41#
42if [[ -f /usr/newconfig/usr/vice/etc/CellServDB && ! -f /usr/afs/etc/CellServDB ]]; then
43 print "Adding CellServDB hosts into /usr/afs/etc/CellServDB"
44 cat /usr/newconfig/usr/vice/etc/CellServDB >> /usr/afs/etc/CellServDB
45fi
46
47exit $exitval