~ubuntu-branches/ubuntu/warty/openafs/warty

« back to all changes in this revision

Viewing changes to src/packaging/HP-UX/scripts/openafs-krn.postinstall

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
##############
 
3
# Subproduct: OPENAFS.Kernel
 
4
# Fileset: OPENAFS-KRN32 | OPENAFS-KRN64
 
5
# postinstall
 
6
# @(#) $Revision: 1.1.1.1 $
 
7
##############
 
8
#
 
9
#  (c) Copyright 2003
 
10
#
 
11
########
 
12
 
 
13
# The global variables SUCCESS, FAILURE, WARNING, EXCLUDE, PATH, ROOT,
 
14
# SW_CTL_SCRIPT_NAME, _pf, PRODUCT, and FILESET are all set by control_utils.
 
15
 
 
16
set -a
 
17
UTILS="/usr/lbin/sw/control_utils"
 
18
if [[ ! -f ${UTILS} ]]
 
19
then
 
20
    echo "ERROR:   Cannot find ${UTILS}"
 
21
    exit 1
 
22
fi
 
23
. ${UTILS}
 
24
 
 
25
exitval=$SUCCESS                # Anticipate success
 
26
 
 
27
############################################################################
 
28
 
 
29
# This check modifies only /stand on the root file system
 
30
 
 
31
if [[ -z "${SW_DEFERRED_KERNBLD}" ]]
 
32
then
 
33
 
 
34
  ##########################################
 
35
  #                                        #
 
36
  # Place afs driver into /stand/system    #
 
37
  #                                        #
 
38
  ##########################################
 
39
 
 
40
  mod_systemfile $SW_SYSTEM_FILE_PATH -a afs
 
41
  if [[ $? -ne 0 ]]
 
42
  then
 
43
    print "ERROR:   Cannot update $SW_SYSTEM_FILE_PATH to"
 
44
    print "         include afs ($FILESET functionality)."
 
45
   exitval=$FAILURE
 
46
  fi
 
47
fi
 
48
 
 
49
exit $exitval