Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / packaging / HP-UX / scripts / openafs-krn.unconfigure
1 #!/bin/sh
2 ##############
3 # Subproduct: OPENAFS.Kernel
4 # Fileset: OPENAFS-KRN32 | OPENAFS-KRN64
5 # configure
6 # @(#) $Revision$
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
30 ##########################################
31 # #
32 # Delete driver from /stand/system #
33 # #
34 ##########################################
35
36 mod_systemfile $SW_SYSTEM_FILE_PATH -d afs
37 if [[ $? -ne 0 ]]
38 then
39 print "ERROR: Cannot update $SW_SYSTEM_FILE_PATH to"
40 print " remove afs ($FILESET functionality)."
41 exitval=$FAILURE
42 fi
43
44 exit $exitval