afsd: Tidy up system calls
[openafs.git] / src / afsd / rc.dkload.client.rs_aix
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 echo 'Loading AFS ...'>/dev/console
9 # Load AFS into the kernel
10 cd /usr/vice/etc/dkload
11 ./cfgexport -a /usr/vice/etc/dkload/export.ext.nonfs
12 if [ $? -eq 0 ]; then
13     echo "32-bit kernel found"
14     ./cfgafs -a /usr/vice/etc/dkload/afs.ext.32
15 else
16     echo "64-bit kernel assumed"
17     ./cfgexport64 -a /usr/vice/etc/dkload/export64.ext.nonfs
18     ./cfgafs64 -a /usr/vice/etc/dkload/afs.ext.64
19 fi
20 if [ $? -ne 0 ]; then
21   /bin/echo "Unable to load AFS extensions into kernel."
22   exit 1
23 fi
24