3 # arch/arm/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
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
14 # "make install" script for arm architecture
18 # $2 - kernel image file
19 # $3 - kernel map file
20 # $4 - default install path (blank if root directory)
23 # User may have a custom install script
25 if [ -x /sbin
/installkernel
]; then
26 exec /sbin
/installkernel
"$@"
29 if [ "$2" = "zImage" ]; then
31 echo "Installing compressed kernel"
32 if [ -f $4/vmlinuz-
$1 ]; then
33 mv $4/vmlinuz-
$1 $4/vmlinuz.old
36 if [ -f $4/System.map-
$1 ]; then
37 mv $4/System.map-
$1 $4/System.old
40 cat $2 > $4/vmlinuz-
$1
41 cp $3 $4/System.map-
$1
44 echo "Installing normal kernel"
45 if [ -f $4/vmlinux-
$1 ]; then
46 mv $4/vmlinux-
$1 $4/vmlinux.old
49 if [ -f $4/System.map
]; then
50 mv $4/System.map
$4/System.old
53 cat $2 > $4/vmlinux-
$1
57 if [ -x /sbin
/loadmap
]; then
58 /sbin
/loadmap
--rdev /dev
/ima
60 echo "You have to install it yourself"