GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / m32r / boot / compressed / install.sh
blob16e5a0a134375ec3c7f6f785801bed0d1a45c798
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
14 # Adapted from code in arch/sh/boot/install.sh by Takeo Takahashi
16 # "make install" script for sh architecture
18 # Arguments:
19 # $1 - kernel version
20 # $2 - kernel image file
21 # $3 - kernel map file
22 # $4 - default install path (blank if root directory)
25 # User may have a custom install script
27 if [ -x /sbin/${INSTALLKERNEL} ]; then
28 exec /sbin/${INSTALLKERNEL} "$@"
31 if [ "$2" = "zImage" ]; then
32 # Compressed install
33 echo "Installing compressed kernel"
34 if [ -f $4/vmlinuz-$1 ]; then
35 mv $4/vmlinuz-$1 $4/vmlinuz.old
38 if [ -f $4/System.map-$1 ]; then
39 mv $4/System.map-$1 $4/System.old
42 cat $2 > $4/vmlinuz-$1
43 cp $3 $4/System.map-$1
44 else
45 # Normal install
46 echo "Installing normal kernel"
47 if [ -f $4/vmlinux-$1 ]; then
48 mv $4/vmlinux-$1 $4/vmlinux.old
51 if [ -f $4/System.map ]; then
52 mv $4/System.map $4/System.old
55 cat $2 > $4/vmlinux-$1
56 cp $3 $4/System.map