Commit | Line | Data |
---|---|---|
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 | ||
17 | set -a | |
18 | UTILS="/usr/lbin/sw/control_utils" | |
19 | if [[ ! -f ${UTILS} ]] | |
20 | then | |
21 | echo "ERROR: Cannot find ${UTILS}" | |
22 | exit 1 | |
23 | fi | |
24 | . ${UTILS} | |
25 | ||
26 | exitval=$SUCCESS # Anticipate success | |
27 | ||
28 | ############################################################################ | |
29 | # | |
30 | # Add cacheinfo info only if it does not locally exist | |
31 | # | |
32 | ||
33 | if [[ -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 | ||
38 | fi | |
39 | # | |
40 | # Add CellServDB info only if it does not locally exist | |
41 | # | |
42 | if [[ -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 | |
45 | fi | |
46 | ||
47 | exit $exitval |