| # arch/sh/boot/install.sh |
| # This file is subject to the terms and conditions of the GNU General Public |
| # License. See the file "COPYING" in the main directory of this archive |
| # Copyright (C) 1995 by Linus Torvalds |
| # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin |
| # Adapted from code in arch/i386/boot/install.sh by Russell King |
| # Adapted from code in arch/arm/boot/install.sh by Stuart Menefy |
| # "make install" script for sh architecture |
| # $4 - default install path (blank if root directory) |
| # User may have a custom install script |
| if [ -x /sbin/installkernel ]; then |
| exec /sbin/installkernel "$@" |
| if [ "$2" = "zImage" ]; then |
| echo "Installing compressed kernel" |
| if [ -f $4/vmlinuz-$1 ]; then |
| mv $4/vmlinuz-$1 $4/vmlinuz.old |
| if [ -f $4/System.map-$1 ]; then |
| mv $4/System.map-$1 $4/System.old |
| echo "Installing normal kernel" |
| if [ -f $4/vmlinux-$1 ]; then |
| mv $4/vmlinux-$1 $4/vmlinux.old |
| if [ -f $4/System.map ]; then |
| mv $4/System.map $4/System.old |