#!/bin/sh1#2# This file is subject to the terms and conditions of the GNU General Public3# License. See the file "COPYING" in the main directory of this archive4# for more details.5#6# Copyright (C) 1995 by Linus Torvalds7#8# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin9#10# "make install" script for i386 architecture11#12# Arguments:13# $1 - kernel version14# $2 - kernel image file15# $3 - kernel map file16# $4 - default install path (blank if root directory)1718set -e1920if [ "$(basename $2)" = "vmlinuz" ]; then21# Compressed install22echo "Installing compressed kernel"23base=vmlinuz24else25# Normal install26echo "Installing normal kernel"27base=vmlinux28fi2930if [ -f $4/$base-$1 ]; then31mv $4/$base-$1 $4/$base-$1.old32fi33cat $2 > $4/$base-$13435# Install system map file36if [ -f $4/System.map-$1 ]; then37mv $4/System.map-$1 $4/System.map-$1.old38fi39cp $3 $4/System.map-$140414243