This commit was manufactured by cvs2svn to create branch
[linux-2.6.git] / arch / s390 / boot / install.sh
1 #!/bin/sh
2 #
3 # arch/s390x/boot/install.sh
4 #
5 # This file is subject to the terms and conditions of the GNU General Public
6 # License.  See the file "COPYING" in the main directory of this archive
7 # for more details.
8 #
9 # Copyright (C) 1995 by Linus Torvalds
10 #
11 # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
12 #
13 # "make install" script for s390 architecture
14 #
15 # Arguments:
16 #   $1 - kernel version
17 #   $2 - kernel image file
18 #   $3 - kernel map file
19 #   $4 - kernel type file
20 #   $5 - default install path (blank if root directory)
21 #
22
23 # User may have a custom install script
24
25 if [ -x ~/bin/installkernel ]; then exec ~/bin/installkernel "$@"; fi
26 if [ -x /sbin/installkernel ]; then exec /sbin/installkernel "$@"; fi
27
28 # Default install - same as make zlilo
29
30 if [ -f $5/vmlinuz ]; then
31         mv $5/vmlinuz $5/vmlinuz.old
32 fi
33
34 if [ -f $5/System.map ]; then
35         mv $5/System.map $5/System.old
36 fi
37
38 if [ -f $5/Kerntypes ]; then
39         mv $5/Kerntypes $5/Kerntypes.old
40 fi
41
42 cat $2 > $5/vmlinuz
43 cp $3 $5/System.map
44
45 # copy the kernel type file if it exists
46 if [ -f $4 ]; then
47         cp $4 $5/Kerntypes
48 fi