x86/xen: resume timer irqs early
[linux/fpc-iii.git] / arch / sh / boot / compressed / install.sh
blobf9f41818b17e7e0ae9b4f0dcb00f2dfedd3080b6
1 #!/bin/sh
3 # arch/sh/boot/install.sh
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.
9 # Copyright (C) 1995 by Linus Torvalds
11 # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
12 # Adapted from code in arch/i386/boot/install.sh by Russell King
13 # Adapted from code in arch/arm/boot/install.sh by Stuart Menefy
15 # "make install" script for sh architecture
17 # Arguments:
18 # $1 - kernel version
19 # $2 - kernel image file
20 # $3 - kernel map file
21 # $4 - default install path (blank if root directory)
24 # User may have a custom install script
26 if [ -x /sbin/${INSTALLKERNEL} ]; then
27 exec /sbin/${INSTALLKERNEL} "$@"
30 if [ "$2" = "zImage" ]; then
31 # Compressed install
32 echo "Installing compressed kernel"
33 if [ -f $4/vmlinuz-$1 ]; then
34 mv $4/vmlinuz-$1 $4/vmlinuz.old
37 if [ -f $4/System.map-$1 ]; then
38 mv $4/System.map-$1 $4/System.old
41 cat $2 > $4/vmlinuz-$1
42 cp $3 $4/System.map-$1
43 else
44 # Normal install
45 echo "Installing normal kernel"
46 if [ -f $4/vmlinux-$1 ]; then
47 mv $4/vmlinux-$1 $4/vmlinux.old
50 if [ -f $4/System.map ]; then
51 mv $4/System.map $4/System.old
54 cat $2 > $4/vmlinux-$1
55 cp $3 $4/System.map