Fix -exit patch rebasing mistake
[pkg-k5-afs_openafs.git] / src / venus / kdump.sh.solaris7
blob05d593a14aa1db05678979f8db4fcf56832abdd8
1 #!/bin/sh
2 # Copyright 2000, International Business Machines Corporation and others.
3 # All Rights Reserved.
4 #
5 # This software has been released under the terms of the IBM Public
6 # License. For details, see the LICENSE file in the top-level source
7 # directory or online at http://www.openafs.org/dl/license10.html
9 ## Wrapper script for kdump on Solaris 7.
11 BITS=32
13 ## Determine the bittedness of the OS
15 if [ -x /bin/isalist ]
16 then
17 case `/bin/isalist` in
18 *sparcv9* ) BITS=64 ;;
19 esac
20 else
21 echo "/bin/isalist not executable"
22 exit 1
25 ## Execute the appropriate kdump and pass it all arguments
27 exec $0${BITS} ${1+"$@"}