Fedora: Handle new kernel variant paths
[openafs.git] / src / packaging / HP-UX / scripts / openafs-srv.configure
1 #!/bin/sh
2 ##############
3 # Product: OPENAFS
4 # Fileset: OPENAFS.OPENAFS-SRV
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
31
32 if [[ -f /sbin/lib/mfsconfig.d/afs ]]; then
33   print "File /sbin/lib/mfsconfig.d/afs already exists"
34 else
35   print "Creating file /sbin/lib/mfsconfig.d/afs"
36   print "format_revision 1" > /sbin/lib/mfsconfig.d/afs
37   print "fsck            0        m,P,p,d,f,b:c:y,n,Y,N,q," \
38         >> /sbin/lib/mfsconfig.d/afs
39   chmog 444 bin bin /sbin/lib/mfsconfig.d/afs
40 fi
41 #
42 # Add /sbin/lib/mfsconfig.d/afs to the IPD so it will be removed
43 # upon removal of the fileset
44
45 print "Adding file /sbin/lib/mfsconfig.d/afs to the OPENAFS.OPENAFS-SRV fileset"
46 swmodify -x files=/sbin/lib/mfsconfig.d/afs OPENAFS.OPENAFS-SRV
47
48 exit $exitval